mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Display build branch in version
This commit is contained in:
parent
eb9a56ed77
commit
c4cf871ccf
4
Makefile
4
Makefile
@ -1,3 +1,5 @@
|
||||
BRANCH := `git rev-parse --abbrev-ref HEAD`
|
||||
|
||||
install:
|
||||
which wtf | xargs rm
|
||||
go install -ldflags="-X main.version=$(shell git describe --always --abbrev=6 --dirty=-dev) -X main.builtat=$(shell date +%FT%T%z)"
|
||||
go install -ldflags="-X main.version=$(shell git describe --always --abbrev=6)_$(BRANCH) -X main.builtat=$(shell date +%FT%T%z)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user