Skip to content

Commit 2711028

Browse files
kpcyrdJorropo
authored andcommitted
Reproducible Builds: Update GOFLAGS for -trimpath
1 parent 84059cc commit 2711028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mk/golang.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ GOTFLAGS ?=
1212
unexport GOFLAGS
1313
# Override so we can combine with the user's go flags.
1414
# Try to make building as reproducible as possible by stripping the go path.
15-
override GOFLAGS += "-asmflags=all='-trimpath=$(GOPATH)'" "-gcflags=all='-trimpath=$(GOPATH)'"
15+
override GOFLAGS += "-trimpath"
1616

1717
ifeq ($(tarball-is),1)
1818
GOFLAGS += -mod=vendor

0 commit comments

Comments
 (0)