Merge pull request #6536 from ipfs/fix/make-handle-whitespace-paths

mk: handle stripping paths when GOPATH contains whitespace
This commit is contained in:
Steven Allen 2019-07-22 15:51:07 -07:00 committed by GitHub
commit 30d4e96a0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ GOFLAGS ?=
GOTFLAGS ?=
# Try to make building as reproducible as possible by stripping the go path.
GOFLAGS += -asmflags=all=-trimpath="$(GOPATH)" -gcflags=all=-trimpath="$(GOPATH)"
GOFLAGS += "-asmflags=all='-trimpath=$(GOPATH)'" "-gcflags=all='-trimpath=$(GOPATH)'"
ifeq ($(tarball-is),1)
GOFLAGS += -mod=vendor