From 00a08c1badeabf7730a23ed34df8a7492b81bf84 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 5 Sep 2022 12:02:08 +0300 Subject: [PATCH] [#199] 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 6f1fcc8..d961a94 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ #!/usr/bin/make -f REPO ?= $(shell go list -m) -VERSION ?= $(shell git describe --tags --match "v*" --dirty --always 2>/dev/null || cat VERSION 2>/dev/null || echo "develop") +VERSION ?= $(shell git describe --tags --match "v*" --dirty --always --abbrev=8 2>/dev/null || cat VERSION 2>/dev/null || echo "develop") GO_VERSION ?= 1.19 LINT_VERSION ?= 1.49.0 BUILD ?= $(shell date -u --iso=seconds)