remove 'v' from version from git tag in Makefile (#1178)

This commit is contained in:
Adam Babik 2018-08-31 07:28:12 +02:00 committed by GitHub
parent 4e386f4097
commit 5664a24b10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ endif
CGO_CFLAGS = -I/$(JAVA_HOME)/include -I/$(JAVA_HOME)/include/darwin
GOBIN = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))build/bin
GIT_COMMIT = $(shell git describe --exact-match --tag 2>/dev/null || git rev-parse --short HEAD)
GIT_COMMIT = $(shell git describe --exact-match --tag 2>/dev/null | sed 's/^v\(.*\)$$/\1/' \
|| git rev-parse --short HEAD)
AUTHOR = $(shell echo $$USER)
BUILD_FLAGS ?= $(shell echo "-ldflags '-X main.buildStamp=`date -u '+%Y-%m-%d.%H:%M:%S'` -X github.com/status-im/status-go/params.Version=$(GIT_COMMIT)'")