-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grype fails to scan a go binary built using go1.24 #2482
Labels
bug
Something isn't working
Comments
It appears to happen when there are multiple |
xnox
added a commit
to xnox/grype
that referenced
this issue
Feb 26, 2025
Try to workaround the +incompatible+dirty versions that go1.24 generates. See: - anchore#2482 - golang/go#71969
xnox
added a commit
to xnox/grype
that referenced
this issue
Feb 26, 2025
Try to workaround the +incompatible+dirty versions that go1.24 generates. See: - anchore#2482 - golang/go#71969 Signed-off-by: Dimitri John Ledkov <[email protected]>
xnox
added a commit
to xnox/grype
that referenced
this issue
Feb 26, 2025
go1.24.0 stamps versions with `+incompatible+dirty` which is an invalid SemVer version. Add a fixup to correct this to SemVer compliant buildinfo version of `+incompatible.dirty` with a test case. Related: - golang/go#71971 - anchore#2482
xnox
added a commit
to xnox/grype
that referenced
this issue
Feb 26, 2025
go1.24.0 stamps versions with `+incompatible+dirty` which is an invalid SemVer version. Add a fixup to correct this to SemVer compliant buildinfo version of `+incompatible.dirty` with a test case. Related: - golang/go#71971 - anchore#2482 Signed-off-by: Dimitri John Ledkov <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened:
Given this pulumi binary:
grype on it fails with:
What you expected to happen:
I expect grype to manage to scan that binary. Note that +incompatible+dirty are largely side-effects of go build processes.
How to reproduce it (as minimally and precisely as possible):
There should be no warning.
If you want to build that go binary yourself, you can do:
Anything else we need to know?: we love grype
Full warning is visible with -v only as
Environment:
grype version
: latestcat /etc/os-release
or similar): linuxThe text was updated successfully, but these errors were encountered: