Skip to content

Commit

Permalink
Go binary not found should not be an error (#622)
Browse files Browse the repository at this point in the history
as it's very likely to be found in a lot of circumstances (e.g. running
in CI).

See #620 for more context.
  • Loading branch information
another-rex committed Oct 31, 2023
1 parent f819495 commit 5a02f6c
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 5a02f6c

Please sign in to comment.