-
Notifications
You must be signed in to change notification settings - Fork 13
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
Set version with build flags #32
Comments
$ go build -ldflags "-s -w -X main.Version=v12.34.56 -X main.Revision=foobar"
$ ./gomi --version
v12.34.56 (foobar)
|
Fixed! Does "Revision" have some special meaning or should it be set to "" (empty instead of "unset")? |
no problem not to set it. Just friendly info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Trying to set version when building with:
but
gomi --version
:unset (unset)
I use this go buildflags on other projects successfully, e.g.:
Am I missing something?
Thanks
The text was updated successfully, but these errors were encountered: