From 2535f4de829d352ae47b56589dd2734cb69a193c Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Wed, 9 Sep 2020 13:43:33 -0400 Subject: [PATCH] Revert "fix: override GOFLAGS" This reverts commit 480defab689610550ee3d346e31441a2bb881fcb. --- mk/golang.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mk/golang.mk b/mk/golang.mk index 5d70f02ba..730733701 100644 --- a/mk/golang.mk +++ b/mk/golang.mk @@ -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