From 9acfea43af752a5ba5745c3594356fac5a3dd0c6 Mon Sep 17 00:00:00 2001 From: xinau Date: Wed, 9 Dec 2020 08:38:26 +0100 Subject: [PATCH] Makefile: fixing previous version computation Signed-off-by: xinau --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 728a33a..f6a5eb6 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ GO = go TIMEOUT = 15 LDFLAGS = "-X $(MODULE)/internal/version.Version=$(VERSION) -X $(MODULE)/internal/version.BuildDate=$(DATE)" -PREV_VERSION = $(shell git describe --abbrev=0 --match=v* $(VERSION)^ 2> /dev/null) +PREV_VERSION = $(shell git describe --abbrev=0 --match=v* --tags $(VERSION)^ 2> /dev/null) DEBUG = 0 Q = $(if $(filter 1,$DEBUG),,@)