Skip to content

Commit

Permalink
mk: handle stripping paths when GOPATH contains whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
djdv committed Jul 22, 2019
1 parent ad8dbe4 commit b69365e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mk/golang.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b69365e

Please sign in to comment.