tendermint/version/version.go

20 lines
295 B
Go
Raw Normal View History

2016-01-20 16:25:26 -05:00
package version
const Maj = "0"
2017-09-22 11:44:57 -04:00
const Min = "11"
2017-10-10 18:47:28 -04:00
const Fix = "1"
2016-01-20 16:25:26 -05:00
2017-05-09 11:37:59 +02:00
var (
// The full version string
2017-10-10 01:18:33 +04:00
Version = "0.11.1"
2017-05-09 11:37:59 +02:00
// GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)"
GitCommit string
)
func init() {
if GitCommit != "" {
Version += "-" + GitCommit[:8]
}
}