Skip to content
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

fix: more robust go main version extraction #2767

Merged
merged 2 commits into from Apr 11, 2024

Conversation

kzantow
Copy link
Contributor

@kzantow kzantow commented Apr 10, 2024

This PR adjusts the regex that the go binary cataloger uses to extract versions when not found in the build flags.

kzantow and others added 2 commits April 10, 2024 14:50
Signed-off-by: Keith Zantow <kzantow@gmail.com>
In order to get the regex under test, extract the code that uses it into
a small helper function.

Signed-off-by: Will Murphy <will.murphy@anchore.com>
@kzantow kzantow marked this pull request as ready for review April 10, 2024 21:08
@kzantow kzantow merged commit dde5d34 into main Apr 11, 2024
11 checks passed
@kzantow kzantow deleted the fix/go-main-module-version-detection branch April 11, 2024 15:58
@kzantow kzantow added the bug Something isn't working label Apr 12, 2024
brian-ebarb pushed a commit to brian-ebarb/syft that referenced this pull request Apr 17, 2024
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
Co-authored-by: Will Murphy <will.murphy@anchore.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants