You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result is that given the PURL specification allows for an encoded string as the version, and we have a matcher in grype that handles go versions correctly (given a prefix of v, go, etc) then we should actually preserve the go prefix for the PURL and preserve the go prefix in the version string.
This is the output given by the go tooling and how they reference go versions in their official vulnerability feed. See the below as an example: https://pkg.go.dev/vuln/GO-2024-3107
I'll get around to making this consistent (preserving the prefix) across PURL and Version and testing that change against yardstick to make sure we don't have any matching regressions.
That makes sense - I'll update the issue title to reflect that then. Thank you 🙂
g-suraj
changed the title
Prevent go standard library version from being prefixed with go
Ensure go standard library version in component and PURL are consistent
Jan 17, 2025
What happened:
The component for the go stdlib looks like
What you expected to happen:
I'd have expected to not see the prefix in the version string in the component. This is already what we do for the PURL here.
Environment:
syft version
: 0.71.0cat /etc/os-release
or similar): Red Hat Enterprise Linux Server release 7.9 (Maipo)The text was updated successfully, but these errors were encountered: