Reproducible Builds: Update GOFLAGS for -trimpath
kpcyrd committed
Jul 7, 2022 at 22:04 UTC
2711028c0aaf48b27d35d2fc300fd06532c3547b
1 file changed
+1
-1
mk/golang.mk
+1
-1
@@ -12,7 +12,7 @@ GOTFLAGS ?=
12
unexport GOFLAGS
13
# Override so we can combine with the user's go flags.
14
# 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"
16
17
ifeq ($(tarball-is),1)
18
GOFLAGS += -mod=vendor