Skip to content

Commit 6293321

Browse files
authored
Merge pull request #786 from ajnavarro/fix/set-correct-version-on-docker-build
Set correct version on static-build
2 parents 07fab5e + aaabf97 commit 6293321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static-package:
3131
docker rm gitbase-temp
3232

3333
# target used in the Dockerfile to build the static binary
34-
static-build: VERSION ?= $(shell git describe --exact-match --tags 2>/dev/null || "dev-$(git rev-parse --short HEAD)$(test -n "`git status --porcelain`" && echo "-dirty" || true)")
34+
static-build: VERSION = $(shell git describe --exact-match --tags 2>/dev/null || "dev-$(git rev-parse --short HEAD)$(test -n "`git status --porcelain`" && echo "-dirty" || true)")
3535
static-build: LD_FLAGS += -linkmode external -extldflags '-static -lz' -s -w
3636
static-build: GO_BUILD_PATH ?= github.com/src-d/gitbase/...
3737
static-build:

0 commit comments

Comments
 (0)