From 107ed04eb31f43154b0ce475f967c3fe668f5f4e Mon Sep 17 00:00:00 2001 From: Andrey Butusov Date: Wed, 28 Aug 2024 17:35:41 +0300 Subject: [PATCH] *: remove v prefix from versions Closes #145. Signed-off-by: Andrey Butusov --- Makefile | 4 ++-- VERSION | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index dafd210..f4ec192 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,8 @@ 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") -HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')" +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_TAG ?= ${VERSION} REPO = nspccdev APP = neo-exporter diff --git a/VERSION b/VERSION index 87a1cf5..ac454c6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.12.0 +0.12.0