-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add --version flag #59
Comments
Discussion on automatically updating git tag versions: https://www.reddit.com/r/golang/comments/4cpi2y/question_where_to_keep_the_version_number_of_a_go/ Since we're already using
|
Looks like the example repo from the article above now recommends using |
When enabling "Run" on the |
Helpful article from DO: https://www.digitalocean.com/community/tutorials/using-ldflags-to-set-version-information-for-go-applications Locally I can set values available in rootCmd like so: |
Needed to fix the build command to use following format:
|
It seems
|
Looks like we can use a Name Template for this: https://goreleaser.com/customization/templates/ Something like |
It would be great if users could see which version of plenti they are using:
plenti --version
Currently releases are created automatically based on the git tag used, it would be ideal if the cmd could autodiscover that tag and use it. I would like to avoid having to manually increment versions every deploy because I'm likely to forget.
Potentially use https://github.com/christopherhein/go-version
The text was updated successfully, but these errors were encountered: