fix: save the version when building manually

This commit is contained in:
2020-12-11 15:57:24 +03:00
parent 9cc9af1759
commit 67648811a5
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
NAME = multini
VERSION = dev_$(shell date +%F_%T)
VERSION := $(shell git describe)
GOCMD = go
LDFLAGS := "$(LDFLAGS) -s -w -X 'main.Version=$(VERSION)'"
GOBUILD = $(GOCMD) build -ldflags=$(LDFLAGS)