Change -X main.Version <n> to -X main.Version=<n> for go1.5

This commit is contained in:
Cameron Sparr
2015-08-20 08:46:08 -06:00
parent 601b444a60
commit 9bc39987f1
4 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ VERSION := $(shell sh -c 'git describe --always --tags')
build: prepare
$(GOPATH)/bin/godep go build -o telegraf -ldflags \
"-X main.Version $(VERSION)" \
"-X main.Version=$(VERSION)" \
./cmd/telegraf/telegraf.go
prepare: