Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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 [email protected]

@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
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