From de273631800026d4867a020077f26b68f40bc051 Mon Sep 17 00:00:00 2001 From: Quentin Perez Date: Fri, 23 Oct 2015 17:05:20 +0200 Subject: [PATCH] gotty-client version with main.VERSION --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cded47b..d695bb9 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ run-docker: build-docker $(notdir $(COMMANDS)): $(SOURCES) gofmt -w $(PACKAGES) ./cmd/$@ go test -i $(PACKAGES) ./cmd/$@ - go build -o $@ ./cmd/$@ + go build -ldflags "-X main.VERSION=$(VERSION)" -o $@ ./cmd/$@ ./$@ --version