From 49ef04f5d15f522a24fa3cf83a712915df364880 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Mon, 13 Nov 2023 13:03:37 +0300 Subject: [PATCH] Remove v prefix from versions Like it is done in neo-go. Closes #2640. Signed-off-by: Pavel Karpy --- Makefile | 2 +- VERSION | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e6641f6f79b..dca6606e033 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL = bash REPO ?= $(shell go list -m) -VERSION ?= $(shell git describe --tags --dirty --match "v*" --always --abbrev=8 2>/dev/null || cat VERSION 2>/dev/null || echo "develop") +VERSION ?= $(shell set -o pipefail; git describe --tags --dirty --match "v*" --always --abbrev=8 2>/dev/null | sed 's/^v//' || cat VERSION 2>/dev/null || echo "develop") HUB_IMAGE ?= nspccdev/neofs HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')" diff --git a/VERSION b/VERSION index b4a466a8103..bb22182d4f7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.38.1 +0.38.1