summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-09-28 13:44:01 +0200
committerMartin Polden <mpolden@mpolden.no>2021-09-28 15:38:04 +0200
commit4c27f21d7264efd77a9db97bce66744c2e136150 (patch)
tree5cfd101b66722df74b7d5689c960041c336b5187 /client
parent3e0bb5b34c0c0868b641ab338698bd14e8b64d04 (diff)
Require exact match for current tag
Diffstat (limited to 'client')
-rw-r--r--client/go/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/go/Makefile b/client/go/Makefile
index a86feb456ef..a491287abfc 100644
--- a/client/go/Makefile
+++ b/client/go/Makefile
@@ -2,7 +2,7 @@
# The version to release. Defaults to the current tag or revision.
# Use env VERSION=X.Y.Z make ... to override
-VERSION ?= $(shell git describe --tags 2> /dev/null | sed "s/^v//")
+VERSION ?= $(shell git describe --tags --exact-match 2> /dev/null | sed "s/^v//")
DEVEL_VERSION := $(shell echo "0.0.0-`git rev-parse --short HEAD`")
ifeq ($(VERSION),)
VERSION = $(DEVEL_VERSION)