From bd20ca04a0a428d28dcb5ef190f632db5d98e91a Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Mon, 31 Oct 2022 14:21:41 -0700 Subject: [PATCH] Supply --tags to git describe to get the right version --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 04e133f8..8f6e06df 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ BUILD_VAR_PREFIX := github.com/prometheus/common/version -BUILD_VERSION := $(shell git describe) +BUILD_VERSION := $(shell git describe --tags) BUILD_BRANCH := $(shell git rev-parse --abbrev-ref HEAD) BUILD_REVISION := $(shell git rev-parse --short HEAD) BUILD_USER := $(shell id -u -n)@$(shell hostname)