Revert "fix: override GOFLAGS"

This reverts commit 480defab68.
This commit is contained in:
Adin Schmahmann 2020-09-09 13:43:33 -04:00
parent 491b88a6eb
commit 2535f4de82

View File

@ -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