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

golang cataloger - main module version as is #986

Merged
merged 1 commit into from
May 5, 2022

Conversation

jonasagx
Copy link
Contributor

@jonasagx jonasagx commented May 4, 2022

#981 overwrites the main version, which doesn't follow Syft's design philosophy of reading data fields as they are. It just so happens that we know the version and it is a constant.

This PR fixes that behavior by reading the main module version as provided by go's BuildInfo.

Signed-off-by: Jonas Xavier jonasx@anchore.com

Signed-off-by: Jonas Xavier <jonasx@anchore.com>
@jonasagx jonasagx self-assigned this May 4, 2022
Copy link
Contributor

@luhring luhring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jonasagx jonasagx merged commit 2fc344a into anchore:main May 5, 2022
@jonasagx jonasagx deleted the fix-golang-catalog-version-source branch May 5, 2022 07:01
spiffcs added a commit that referenced this pull request May 6, 2022
* main:
  feat: add initial dotnet-support (#951)
  unblock timeout for power-user select CLI tests (#985)
  golang cataloger - main module version as is (#986)
  Fix `github-json` output option (#967)
  read Go main module version as is - (devel) (#981)
  reduce logging severity for non-Go binaries (#983)
  golang.org/x/crypto upgrade (#979)
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
Signed-off-by: Jonas Xavier <jonasx@anchore.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants