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

refactor: replace util/version with versioninfo dep #406

Merged
merged 5 commits into from
Oct 31, 2023

Conversation

bnewbold
Copy link
Collaborator

this should fix version metadata being missing or incorrect for several tools.

the old mechanism required pushing through a linker variable at build time (eg, in dockerfile). this package pulls the info a different way which works more reliably. note that it doesn't work with go run, but it does with go build. because we don't have tags/versions in this repo, we'll get versions like rev-42f80c4, which seems fine.

@bnewbold bnewbold requested a review from ericvolp12 October 31, 2023 03:27
Copy link
Collaborator

@ericvolp12 ericvolp12 left a comment

Choose a reason for hiding this comment

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

Sure, LGTM

@bnewbold bnewbold merged commit b761d05 into main Oct 31, 2023
6 checks passed
@bnewbold bnewbold deleted the bnewbold/versioninfo branch October 31, 2023 17:25
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