fix version doesn't work (#28)

This commit is contained in:
Rick 2020-12-26 06:26:09 +08:00 committed by GitHub
parent d36fb862c8
commit 5adab6d32d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ build: clean
@go generate $(shell go list)/...
@go build \
-tags "netgo static_build" -installsuffix netgo \
-ldflags "-w -X $(shell go list).Version=$(VERSION) -X $(shell go list).Commit=$(COMMIT)" \
-ldflags "-w -X main.Version=$(VERSION) -X main.Commit=$(COMMIT)" \
.
install: build