govvv alternatives and similar packages
Based on the "DevOps Tools" category.
Alternatively, view govvv alternatives based on common mentions on social networks and blogs.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of govvv or a related project?
The simple Go binary versioning tool that wraps the
go build command.
Stop worrying about
go get github.com/ahmetb/govvv now.
||short commit hash of source tree||
||current branch name the code is built off||
||whether there are uncommitted changes||
||RFC3339 formatted UTC date||
Using govvv is easy
Just add the build variables you want to the
main package and run:
|old||:sparkles: new :sparkles:|
Version your app with govvv
VERSION file in your build root directory and add a
variable to your
Do you have your own way of specifying
Version? No problem:
govvv lets you specify custom
-ldflags argument will still be preserved:
govvv build -ldflags "-X main.BuildNumber=$buildnum" myapp
-ldflags constructed by govvv will be appended to your flag.
Don’t want to depend on
govvv? It’s fine!
You can just pass a
govvv will just print the
go build command with
-ldflags for you and will not execute the go tool:
$ govvv build -print go build \ -ldflags \ "-X main.GitCommit=57b9870 -X main.GitBranch=dry-run -X main.GitState=dirty -X main.Version=0.1.0 -X main.BuildDate=2016-08-08T20:50:21Z"
Still don’t want to wrap the
go tool? Well, try
-flags to retrieve the LDFLAGS govvv prepares:
$ go build -ldflags="$(govvv -flags)"
Want to use a different package?
You can pass a
-pkg argument with the full package name, and
set the build variables in that package instead of
main. For example:
# build with govvv $ govvv build -pkg github.com/myacct/myproj/mypkg # build with go $ go build -ldflags="$(govvv -flags -pkg $(go list ./mypkg))"
Want to use a different version?
You can pass a
-version argument with the desired version, and
use the specified version instead of obtaining it from the
# build with govvv $ govvv build -version 1.2.3 # build with go $ go build -ldflags="$(govvv -flags -version 1.2.3)"
Try govvv today
$ go get github.com/ahmetb/govvv
govvv is distributed under [Apache 2.0 License](LICENSE).
Copyright 2016 Ahmet Alp Balkan
*Note that all licence references and agreements mentioned in the govvv README section above are relevant to that project's source code only.