From: James Mills <1290234+prologic@users.noreply.github.com> Date: Sun, 26 Mar 2023 03:49:09 +0000 (+1000) Subject: Fix build to correctly inject version X-Git-Tag: 0.3.1^0 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=2dd66671f7d2ed51d3fec5c47a7d11ca648d41c9;p=aya.git Fix build to correctly inject version --- diff --git a/Makefile b/Makefile index 098cc25..5c241d9 100644 --- a/Makefile +++ b/Makefile @@ -38,16 +38,16 @@ ifeq ($(DEBUG), 1) @echo "Building in debug mode..." @$(GOCMD) build -tags "netgo static_build" -installsuffix netgo \ -ldflags "\ - -X $(shell go list).Version=$(VERSION) \ - -X $(shell go list).Commit=$(COMMIT) \ - -X $(shell go list).Build=$(BUILD)" \ + -X main.Version=$(VERSION) \ + -X main.Commit=$(COMMIT) \ + -X main.Build=$(BUILD)" \ . else @$(GOCMD) build -tags "netgo static_build" -installsuffix netgo \ -ldflags "-w \ - -X $(shell go list).Version=$(VERSION) \ - -X $(shell go list).Commit=$(COMMIT) \ - -X $(shell go list).Build=$(BUILD)" \ + -X main.Version=$(VERSION) \ + -X main.Commit=$(COMMIT) \ + -X main.Build=$(BUILD)" \ . endif