From 439749db8350827d6feda77ae450e4befe8333dc Mon Sep 17 00:00:00 2001 From: Evgenii Baidakov Date: Thu, 14 Sep 2023 08:42:16 +0400 Subject: [PATCH] makefile: Add tag Signed-off-by: Evgenii Baidakov --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 519e05f..361eb2f 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,7 @@ BINARY=xk6-neofs XK6_VERSION=0.9.2 -VERSION ?= $(shell git rev-parse --short=8 HEAD) -#VERSION ?= $(shell git describe --tags --match "v*" --abbrev=8 2>/dev/null | sed -r 's,^v([0-9]+\.[0-9]+)\.([0-9]+)(-.*)?$$,\1 \2 \3,' | while read mm patch suffix; do if [ -z "$$suffix" ]; then echo $$mm.$$patch; else patch=`expr $$patch + 1`; echo $$mm.$${patch}-pre$$suffix; fi; done) +VERSION ?= $(shell git describe --tags --match "v*" --abbrev=8 2>/dev/null | sed -r 's,^v([0-9]+\.[0-9]+)\.([0-9]+)(-.*)?$$,\1 \2 \3,' | while read mm patch suffix; do if [ -z "$$suffix" ]; then echo $$mm.$$patch; else patch=`expr $$patch + 1`; echo $$mm.$${patch}-pre$$suffix; fi; done) LDFLAGS:=-s -w -X 'go.k6.io/k6/lib/consts.VersionDetails=xk6-neofs-$(VERSION)' # Install required utils