]> Nishi Git Mirror - aya.git/commitdiff
Fix build to correctly inject version 0.3.1
authorJames Mills <1290234+prologic@users.noreply.github.com>
Sun, 26 Mar 2023 03:49:09 +0000 (13:49 +1000)
committerJames Mills <1290234+prologic@users.noreply.github.com>
Sun, 26 Mar 2023 03:49:09 +0000 (13:49 +1000)
Makefile

index 098cc252a99b0d0825cf43e3f5001b99db86d369..5c241d9fc2364ba3f044052415bd908699593b07 100644 (file)
--- 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