mk: handle stripping paths when GOPATH contains whitespace
Dominic Della Valle committed
Jul 22, 2019 at 18:32 UTC
b69365e408bb31b6b97331d404964d271264ba90
1 file changed
+1
-1
mk/golang.mk
+1
-1
@@ -11,7 +11,7 @@ GOFLAGS ?=
11
GOTFLAGS ?=
12
13
# Try to make building as reproducible as possible by stripping the go path.
14
-GOFLAGS += -asmflags=all=-trimpath="$(GOPATH)" -gcflags=all=-trimpath="$(GOPATH)"
14
+GOFLAGS += "-asmflags=all='-trimpath=$(GOPATH)'" "-gcflags=all='-trimpath=$(GOPATH)'"
15
16
ifeq ($(tarball-is),1)
17
GOFLAGS += -mod=vendor