From dce798a44e325fa84f4e349106a8d8b8c4b9f53c Mon Sep 17 00:00:00 2001 From: Basha Mougamadou Date: Fri, 9 Sep 2022 17:49:30 +0200 Subject: [PATCH] Fix build version in makefile The build version was pulled from an env variable set by TRAVIS. Since commit aad5e02, we're now using a github action based on new tag to create a package. Therefore, now we will use git tag instead of TRAVIS_TAG for the package build version. --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 529da3e..5c5ead6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -4,7 +4,7 @@ SOURCES := $(shell find . -name '*.go') all: test bin $(BIN): $(SOURCES) - go build -o haproxy-connect -ldflags "-X main.BuildTime=`date -u '+%Y-%m-%dT%H:%M:%SZ'` -X main.GitHash=`git rev-parse HEAD` -X main.Version=$${TRAVIS_TAG:-Dev}" + go build -o haproxy-connect -ldflags "-X main.BuildTime=`date -u '+%Y-%m-%dT%H:%M:%SZ'` -X main.GitHash=`git rev-parse HEAD` -X main.Version=`git describe --tags`" bin: $(BIN)