Skip to content

Commit

Permalink
Go binary not found should not be an error, as it's very likely to ha…
Browse files Browse the repository at this point in the history
…ppen in a lot of circumstances (e.g. running in CI)
  • Loading branch information
another-rex committed Oct 31, 2023
1 parent 8340d5a commit 60a364d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/osvscanner/optional_enricher.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func addCompilerVersion(r reporter.Reporter, parsedLockfile *lockfile.Lockfile)
case "go.mod":
goVer, err := getGoVersion()
if err != nil {
r.PrintError(fmt.Sprintf("cannot get go standard library version, go might not be installed: %s\n", err))
r.PrintText(fmt.Sprintf("cannot get go standard library version, go might not be installed: %s\n", err))
} else {
parsedLockfile.Packages = append(parsedLockfile.Packages, lockfile.PackageDetails{
Name: "stdlib",
Expand Down

0 comments on commit 60a364d

Please sign in to comment.