Closed nunotexbsd closed 1 year ago
@nunotexbsd
$ go build -ldflags "-s -w -X main.Version=v12.34.56 -X main.Revision=foobar"
$ ./gomi --version
v12.34.56 (foobar)
@b4b4r07
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
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