git tag detection fix (#1265)
This commit is contained in:
parent
556892cf86
commit
1d156ab19d
4
Makefile
4
Makefile
|
@ -37,10 +37,10 @@ GO_MAJOR_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -
|
||||||
GO_MINOR_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2)
|
GO_MINOR_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2)
|
||||||
MINIMUM_SUPPORTED_GO_MAJOR_VERSION = 1
|
MINIMUM_SUPPORTED_GO_MAJOR_VERSION = 1
|
||||||
MINIMUM_SUPPORTED_GO_MINOR_VERSION = 17
|
MINIMUM_SUPPORTED_GO_MINOR_VERSION = 17
|
||||||
GO_VERSION_VALIDATION_ERR_MSG = Golang version ($(BUILD_GOVERSION)) is not supported, please use least $(MINIMUM_SUPPORTED_GO_MAJOR_VERSION).$(MINIMUM_SUPPORTED_GO_MINOR_VERSION)
|
GO_VERSION_VALIDATION_ERR_MSG = Golang version ($(BUILD_GOVERSION)) is not supported, please use at least $(MINIMUM_SUPPORTED_GO_MAJOR_VERSION).$(MINIMUM_SUPPORTED_GO_MINOR_VERSION)
|
||||||
|
|
||||||
# Current versioning information from env
|
# Current versioning information from env
|
||||||
BUILD_VERSION ?= "$(shell git describe --tags `git rev-list --tags --max-count=1`)"
|
BUILD_VERSION ?= "$(shell git describe --tags)"
|
||||||
BUILD_GOVERSION = "$(shell go version | cut -d " " -f3 | sed -E 's/[go]+//g')"
|
BUILD_GOVERSION = "$(shell go version | cut -d " " -f3 | sed -E 's/[go]+//g')"
|
||||||
BUILD_CODENAME = $(shell cat RELEASE.json | jq -r .CodeName)
|
BUILD_CODENAME = $(shell cat RELEASE.json | jq -r .CodeName)
|
||||||
BUILD_TIMESTAMP = $(shell date +%F"_"%T)
|
BUILD_TIMESTAMP = $(shell date +%F"_"%T)
|
||||||
|
|
Loading…
Reference in a new issue