From e02e85461d35575c6f5ed67ad1e9c881452758d0 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 5 Sep 2022 12:06:18 +0300 Subject: [PATCH] [#697] Fix commit abbrev length in version Signed-off-by: Alex Vanin --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d9aaccef..e79e1aa7 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # Common variables REPO ?= $(shell go list -m) -VERSION ?= $(shell git describe --tags --dirty --match "v*" --always 2>/dev/null || cat VERSION 2>/dev/null || echo "develop") +VERSION ?= $(shell git describe --tags --dirty --match "v*" --always --abbrev=8 2>/dev/null || cat VERSION 2>/dev/null || echo "develop") GO_VERSION ?= 1.19 LINT_VERSION ?= 1.49.0 BINDIR = bin