Skip to content

Commit

Permalink
Merge pull request #786 from ajnavarro/fix/set-correct-version-on-doc…
Browse files Browse the repository at this point in the history
…ker-build

Set correct version on static-build
  • Loading branch information
ajnavarro authored Apr 8, 2019
2 parents 07fab5e + aaabf97 commit 6293321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static-package:
docker rm gitbase-temp

# target used in the Dockerfile to build the static binary
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)")
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)")
static-build: LD_FLAGS += -linkmode external -extldflags '-static -lz' -s -w
static-build: GO_BUILD_PATH ?= github.com/src-d/gitbase/...
static-build:
Expand Down

0 comments on commit 6293321

Please sign in to comment.