mirror of
https://git.mills.io/prologic/zs
synced 2024-11-22 05:16:11 +03:00
Fix build to correctly inject version
This commit is contained in:
parent
f421e30ba8
commit
2dd66671f7
12
Makefile
12
Makefile
@ -38,16 +38,16 @@ ifeq ($(DEBUG), 1)
|
|||||||
@echo "Building in debug mode..."
|
@echo "Building in debug mode..."
|
||||||
@$(GOCMD) build -tags "netgo static_build" -installsuffix netgo \
|
@$(GOCMD) build -tags "netgo static_build" -installsuffix netgo \
|
||||||
-ldflags "\
|
-ldflags "\
|
||||||
-X $(shell go list).Version=$(VERSION) \
|
-X main.Version=$(VERSION) \
|
||||||
-X $(shell go list).Commit=$(COMMIT) \
|
-X main.Commit=$(COMMIT) \
|
||||||
-X $(shell go list).Build=$(BUILD)" \
|
-X main.Build=$(BUILD)" \
|
||||||
.
|
.
|
||||||
else
|
else
|
||||||
@$(GOCMD) build -tags "netgo static_build" -installsuffix netgo \
|
@$(GOCMD) build -tags "netgo static_build" -installsuffix netgo \
|
||||||
-ldflags "-w \
|
-ldflags "-w \
|
||||||
-X $(shell go list).Version=$(VERSION) \
|
-X main.Version=$(VERSION) \
|
||||||
-X $(shell go list).Commit=$(COMMIT) \
|
-X main.Commit=$(COMMIT) \
|
||||||
-X $(shell go list).Build=$(BUILD)" \
|
-X main.Build=$(BUILD)" \
|
||||||
.
|
.
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user