move Version and Commit to core

This commit is contained in:
nytpu
2021-04-19 10:16:20 -06:00
parent ffe7a37c66
commit fd2667cb9f
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ GO ?= CGO_ENABLED=0 go
GOFLAGS ?=
#GOLDFLAGS ?= -X main.Version=$(VERSION) -X main.Commit=$(COMMIT)
# also strips executable, significantly reduces size
GOLDFLAGS ?= -s -w -X main.Version=$(VERSION) -X main.Commit=$(COMMIT)
GOLDFLAGS ?= -s -w -X golang.nytpu.com/comitium/core.Version=$(VERSION) -X golang.nytpu.com/comitium/core.Commit=$(COMMIT)
SCDOC ?= scdoc
MKDIR ?= mkdir -p
RM ?= rm -f