-
Notifications
You must be signed in to change notification settings - Fork 39
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
go install regal does not provide any version information #1275
Comments
I think this is to be expected since the build you grab from github was done via goreleaser, injects certain ldflags, etc. I believe most Go CLI tools fail to show proper versioning information when installed via That said, if you or someone else wants to tackle the problem, using |
I still think that go install should be supported including versioning when this option is chosen to install regal. I can come up with more than five other golang tools that support versioning when they have been installed using go install. |
Like you allude to, Considering the huge number of golang tools around, "more than five" isn't exactly a large number. But if you drop some links to projects that does this, perhaps that would be helpful for whoever wants to work on this. |
Project that show a version once they have been installed using |
lol, touché! 🤣 Thanks 👍 that's helpful |
Please let me know if I should create a PR. I am looking forward to this as I prefer |
By all means, please do! 👍 |
PR has been created. Please review. |
@sbp-bvanb did you find a satisfiable solution to this eventually? Given that this would require a larger effort to our build process, I don't think we're going to change this in the near future. I'll close this, but if someone is interested enough in this to put in the work, I'm happy to re-open. |
I download the binary instead of using go install as a workaround as the former contains the version information. In other words, it is fine if this issue will be closed. |
Thanks! In case you missed it, and you're using GitHub Actions, you can use https://github.com/StyraInc/setup-regal/ for some added convenience. |
install regal
go install github.com/styrainc/[email protected]
issue
regal version
while
is expected
The text was updated successfully, but these errors were encountered: