Skip to content

Commit

Permalink
Do not require vcs for go list
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-at-luther committed Dec 11, 2023
1 parent 156dbcf commit 69e0568
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion images/build-go.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ GO_BUILD_TAGS ?= netgo,timetzdata
GO_BUILD_EXTRA_FLAGS ?= -a

GO_BUILD_FLAGS=-installsuffix ${GO_BUILD_TAGS} -tags ${GO_BUILD_TAGS} -buildvcs=false
GO_LD_FLAGS=-X $(shell go list)/version.Version=${VERSION} -extldflags "-static"
GO_LD_FLAGS=-X $(shell go list -buildvcs=false)/version.Version=${VERSION} -extldflags "-static"

DOCKER=docker

Expand Down
2 changes: 1 addition & 1 deletion images/build-godynamic.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ GO_BUILD_TAGS ?= netgo,timetzdata
GO_BUILD_EXTRA_FLAGS ?= -a

GO_BUILD_FLAGS=-installsuffix ${GO_BUILD_TAGS} -tags ${GO_BUILD_TAGS} -buildvcs=false
GO_LD_FLAGS=-X $(shell go list)/version.Version=${VERSION} -extldflags "-static"
GO_LD_FLAGS=-X $(shell go list -buildvcs=false)/version.Version=${VERSION} -extldflags "-static"

DOCKER=docker

Expand Down
2 changes: 1 addition & 1 deletion images/build-goextra.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ GO_BUILD_TAGS ?= netgo,timetzdata
GO_BUILD_EXTRA_FLAGS ?= -a

GO_BUILD_FLAGS=-installsuffix ${GO_BUILD_TAGS} -tags ${GO_BUILD_TAGS} -buildvcs=false
GO_LD_FLAGS=-X $(shell go list)/version.Version=${VERSION} -extldflags "-static"
GO_LD_FLAGS=-X $(shell go list -buildvcs=false)/version.Version=${VERSION} -extldflags "-static"

DOCKER=docker

Expand Down

0 comments on commit 69e0568

Please sign in to comment.