From fb380d0e6faeccd5bb5599f255921366a6bdab6b Mon Sep 17 00:00:00 2001 From: Evgenii Baidakov Date: Wed, 13 Sep 2023 15:58:15 +0400 Subject: [PATCH] makefile: Set xk6-neofs version from commit Signed-off-by: Evgenii Baidakov --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6415306..519e05f 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,9 @@ BINARY=xk6-neofs XK6_VERSION=0.9.2 - -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=$(VERSION)' +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) +LDFLAGS:=-s -w -X 'go.k6.io/k6/lib/consts.VersionDetails=xk6-neofs-$(VERSION)' # Install required utils install_xk6: