tendermint/version/version.go

20 lines
295 B
Go
Raw Normal View History

2016-01-20 13:25:26 -08:00
package version
const Maj = "0"
2017-04-26 17:06:45 -07:00
const Min = "10"
2017-09-05 13:46:56 -07:00
const Fix = "4"
2016-01-20 13:25:26 -08:00
2017-05-09 02:37:59 -07:00
var (
// The full version string
2017-09-05 13:46:56 -07:00
Version = "0.10.4"
2017-05-09 02:37:59 -07:00
// GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)"
GitCommit string
)
func init() {
if GitCommit != "" {
Version += "-" + GitCommit[:8]
}
}