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

vacuum version outputs latest when installing using go install #575

Open
BentEngbers opened this issue Nov 1, 2024 · 2 comments
Open

vacuum version outputs latest when installing using go install #575

BentEngbers opened this issue Nov 1, 2024 · 2 comments

Comments

@BentEngbers
Copy link

BentEngbers commented Nov 1, 2024

When you install vacuum using the following command:

go install github.com/daveshanley/[email protected]

And you run the version command:

vacuum version

It outputs the version as latest

This might be related to #548
Possible fixes might be: canonical/pebble#225 and sigstore/rekor#212

Thanks for the awesome tool btw!

@BentEngbers
Copy link
Author

A potential solution is to set the version explicitly like this:

go install -ldflags="-X 'main.version=0.14.2'" github.com/daveshanley/[email protected]

However, this approach is error-prone.

@daveshanley
Copy link
Owner

thanks for the heads up on this. Yeah - thats a usecase I didn't consider.

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

No branches or pull requests

2 participants