fix: incorrect git tag being injected as version

Git tag version injected via Makefile is incorrect since `git describe`
doesn't consider annotated tags but all the recent releases are lightweight tags.
So instead use `git describe --tags` command which also considers recent lightweight tag.
This commit is contained in:
Vivek R 2020-10-03 03:44:13 +05:30
parent 23d479e9c1
commit 584c3bd2aa
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
LAST_COMMIT := $(shell git rev-parse --short HEAD)
LAST_COMMIT_DATE := $(shell git show -s --format=%ci ${LAST_COMMIT})
VERSION := $(shell git describe)
VERSION := $(shell git describe --tags)
BUILDSTR := ${VERSION} (${LAST_COMMIT} $(shell date -u +"%Y-%m-%dT%H:%M:%S%z"))
BIN := listmonk