mirror of
https://git.mills.io/prologic/zs.git
synced 2024-11-21 03:36:03 -05: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..."
|
||||
@$(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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user