-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle Go binaries from the Go distributions
Binaries that are built in the Go distribution (e.g. the Go compiler, `gofmt`, `vet` and many more) do not have a `mod` directive like "normal" Go binaries. This seems to be a special case for all binaries from the Go source / standard library. So far, our parsing logic couldn't handle the missing `mod` directive, which means that all these binaries currently have the same project name `-compiler=gc`. This commit fixes that behaviour by naming the binaries with a fixed prefix `go-stdlib@` plus the path that we can extract from the `path` directive in the build metadata. This results in names like `go-stdlib@cmd/vet`. Note that this is only relevant for the CLI output, a `snyk container monitor` does not seem to use the project name from the CLI, but rather the path.
- Loading branch information
1 parent
abd3f57
commit c5f889d
Showing
3 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters