Skip to content

Commit

Permalink
Close #194. No branch name in build version anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Cummer committed Jun 14, 2018
1 parent e5254fe commit 6dd7069
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Makefile
@@ -1,13 +1,11 @@
BRANCH := `git rev-parse --abbrev-ref HEAD`

.PHONY: dependencies install run

build:
go build -o bin/wtf

install:
which wtf | xargs rm || true
go install -ldflags="-X main.version=$(shell git describe --always --abbrev=6)_$(BRANCH) -X main.date=$(shell date +%FT%T%z)"
go clean
go install -ldflags="-X main.version=$(shell git describe --always --abbrev=6) -X main.date=$(shell date +%FT%T%z)"
which wtf

run: build
Expand Down

0 comments on commit 6dd7069

Please sign in to comment.