Skip to content

Commit

Permalink
fix: add import + update link
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Jul 1, 2024
1 parent 66a5196 commit b68efe7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/fanal/analyzer/language/conda/environment/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/aquasecurity/trivy/pkg/fanal/analyzer/language"
"github.com/aquasecurity/trivy/pkg/fanal/types"
"github.com/aquasecurity/trivy/pkg/log"
"github.com/aquasecurity/trivy/pkg/version/doc"
xio "github.com/aquasecurity/trivy/pkg/x/io"
)

Expand All @@ -42,7 +43,8 @@ func (*parser) Parse(r xio.ReadSeekerAt) ([]types.Package, []types.Dependency, e
if err != nil {
// Show log once per file
once.Do(func() {
log.WithPrefix("conda").Debugf("License not found. See %s for details", doc.URL("docs/coverage/os/conda/", "license_1"))
// e.g. https://aquasecurity.github.io/trivy/latest/docs/coverage/os/conda/#license_1
log.WithPrefix("conda").Debug(fmt.Sprintf("License not found. See %s for details.", doc.URL("docs/coverage/os/conda/", "license_1")),
log.String("pkg", pkg.Name), log.Err(err))
})
}
Expand Down

0 comments on commit b68efe7

Please sign in to comment.