-
Notifications
You must be signed in to change notification settings - Fork 405
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
ko version
to report build/version information
#21
Comments
I would like to take care of it. Could you advise on activities needed besides adding 'version' command? govvv changes build process (as you don't use go build directly anymore) and I don't see any build wrapper (Makefile/scripts etc.) to hide that. Same problem with using package, users 'go getting' ko wouldn't have it working. |
Thanks for your interest @cezkuj ! We don't currently have an official release process or any release scripts, which is probably a prerequisite for this. For users can install via FWIW, I also found an alternative approach to |
As far as I see, govvv also uses -ldflags approach. I feel like that's most common way to get build info. Not sure if it is worth to have hard dependency on other project to reduce few less lines here and there - your call. |
Right you are. I don't have a strong opinion about taking a dependency on I think if you add a release script that populates consts which |
Overall I agree, but one thing is a bit unclear to me, what do you mean by
I don't see any way to get it from go version, do you mean git rev-parse (or some equivalents)? Edited for more clarity. |
Yeah, using
Let me know if you had something else in mind. I don't have a strong opinion about what the output should look like. Users have only actually asked for a way to get the released version string from the command, we could skip the fallback for simplicity for now as well. |
Ok, understood. Will prepare something like that + script to wrap releasing. |
Resolving #21 issue. Adding ko version and simple release script
Using https://github.com/ahmetb/govvv
The text was updated successfully, but these errors were encountered: