mirror of
https://github.com/tendermint/tendermint.git
synced 2026-05-23 15:41:30 +00:00
Change "make build" to set GitCommit variable
As described above.
This commit is contained in:
3
Makefile
3
Makefile
@@ -11,7 +11,8 @@ install: get_vendor_deps
|
||||
@go install ./cmd/tendermint
|
||||
|
||||
build:
|
||||
go build -o build/tendermint ./cmd/tendermint
|
||||
go build --ldflags '-extldflags "-static"' \
|
||||
--ldflags "-X github.com/tendermint/tendermint/version.GitCommit=`git rev-parse HEAD`" -o build/tendermint ./cmd/tendermint/
|
||||
|
||||
build_race:
|
||||
go build -race -o build/tendermint ./cmd/tendermint
|
||||
|
||||
@@ -4,4 +4,4 @@ const Maj = "0"
|
||||
const Min = "10"
|
||||
const Fix = "0"
|
||||
|
||||
const Version = "0.10.0"
|
||||
const Version = Maj + "." + Min + "." + Fix
|
||||
|
||||
Reference in New Issue
Block a user