fixing link: warning: option -X main.Version v0.1.8-2-g8c5e1ff may not work in future releases; use -X main.Version=v0.1.8-2-g8c5e1ff
This commit is contained in:
8
Makefile
8
Makefile
@@ -3,18 +3,18 @@ VERSION := $(shell sh -c 'git describe --always --tags')
|
|||||||
|
|
||||||
build: prepare
|
build: prepare
|
||||||
$(GOPATH)/bin/godep go build -o telegraf -ldflags \
|
$(GOPATH)/bin/godep go build -o telegraf -ldflags \
|
||||||
"-X main.Version $(VERSION)" \
|
"-X main.Version=$(VERSION)" \
|
||||||
./cmd/telegraf/telegraf.go
|
./cmd/telegraf/telegraf.go
|
||||||
|
|
||||||
build-linux-bins: prepare
|
build-linux-bins: prepare
|
||||||
GOARCH=amd64 GOOS=linux $(GOPATH)/bin/godep go build -o telegraf_linux_amd64 \
|
GOARCH=amd64 GOOS=linux $(GOPATH)/bin/godep go build -o telegraf_linux_amd64 \
|
||||||
-ldflags "-X main.Version $(VERSION)" \
|
-ldflags "-X main.Version=$(VERSION)" \
|
||||||
./cmd/telegraf/telegraf.go
|
./cmd/telegraf/telegraf.go
|
||||||
GOARCH=386 GOOS=linux $(GOPATH)/bin/godep go build -o telegraf_linux_386 \
|
GOARCH=386 GOOS=linux $(GOPATH)/bin/godep go build -o telegraf_linux_386 \
|
||||||
-ldflags "-X main.Version $(VERSION)" \
|
-ldflags "-X main.Version=$(VERSION)" \
|
||||||
./cmd/telegraf/telegraf.go
|
./cmd/telegraf/telegraf.go
|
||||||
GOARCH=arm GOOS=linux $(GOPATH)/bin/godep go build -o telegraf_linux_arm \
|
GOARCH=arm GOOS=linux $(GOPATH)/bin/godep go build -o telegraf_linux_arm \
|
||||||
-ldflags "-X main.Version $(VERSION)" \
|
-ldflags "-X main.Version=$(VERSION)" \
|
||||||
./cmd/telegraf/telegraf.go
|
./cmd/telegraf/telegraf.go
|
||||||
|
|
||||||
prepare:
|
prepare:
|
||||||
|
|||||||
Reference in New Issue
Block a user