Skip to content

Commit

Permalink
Revert "fix: override GOFLAGS"
Browse files Browse the repository at this point in the history
This reverts commit 480defa.
  • Loading branch information
aschmahmann committed Sep 9, 2020
1 parent 491b88a commit 2535f4d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mk/golang.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ export GO111MODULE=on
# pre-definitions
GOCC ?= go
GOTAGS ?=
unexport GOFLAGS
GOFLAGS ?=
GOTFLAGS ?=

# Unexport GOFLAGS so we only apply it where we actually want it.
unexport GOFLAGS
# Try to make building as reproducible as possible by stripping the go path.
# Override so we can combine with the user's go flags.
override GOFLAGS += -trimpath
GOFLAGS += "-asmflags=all='-trimpath=$(GOPATH)'" "-gcflags=all='-trimpath=$(GOPATH)'"

ifeq ($(tarball-is),1)
GOFLAGS += -mod=vendor
Expand Down

0 comments on commit 2535f4d

Please sign in to comment.