1
0
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:
Chris Cummer 2018-04-29 12:26:49 -07:00
parent eb9a56ed77
commit c4cf871ccf

View File

@ -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)"