From 29d8d204ef62f2b414ff9649bccd52dbd92be642 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 8 Sep 2022 21:17:08 +0300 Subject: [PATCH] Makefile: always use 8 chars for git revision in version That's what we usually have today already, but it's dynamic by default. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2db8a0546..90510d46b 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ DC_FILE ?= ".docker/docker-compose.yml" # Single docker-compose for Ubuntu/WSC, ENV_IMAGE_TAG="env_neo_go_image" REPO ?= "$(shell go list -m)" -VERSION ?= "$(shell git describe --tags --match "v*" 2>/dev/null | sed 's/^v//')" +VERSION ?= "$(shell git describe --tags --match "v*" --abbrev=8 2>/dev/null | sed 's/^v//')" MODVERSION ?= "$(shell cat go.mod | cat go.mod | sed -r -n -e 's|.*pkg/interop (.*)|\1|p')" BUILD_FLAGS = "-X '$(REPO)/pkg/config.Version=$(VERSION)' -X '$(REPO)/cli/smartcontract.ModVersion=$(MODVERSION)'"