From c0de8f41fc9927ddbb0bf6e1689cc551ee0ef2a1 Mon Sep 17 00:00:00 2001 From: anikeev-yadro Date: Thu, 11 Aug 2022 16:21:56 +0300 Subject: [PATCH] [#653] Filter version tags for version calculation Signed-off-by: anikeev-yadro --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2c12040bf..a0c379408 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # Common variables REPO ?= $(shell go list -m) -VERSION ?= $(shell git describe --tags --dirty --always 2>/dev/null || cat VERSION 2>/dev/null || echo "develop") +VERSION ?= $(shell git describe --tags --dirty --match "v*" --always 2>/dev/null || cat VERSION 2>/dev/null || echo "develop") GO_VERSION ?= 1.17 LINT_VERSION ?= 1.46.2 BINDIR = bin