From 5adab6d32d8374492f00a8f747ea373a38882036 Mon Sep 17 00:00:00 2001 From: Rick <8622915+brownchow@users.noreply.github.com> Date: Sat, 26 Dec 2020 06:26:09 +0800 Subject: [PATCH] fix version doesn't work (#28) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 890beba..7956306 100644 --- a/Makefile +++ b/Makefile @@ -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