Skip to content

Commit

Permalink
Fix build version in makefile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mougams committed Sep 9, 2022
1 parent aad5e02 commit dce798a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit dce798a

Please sign in to comment.