build: strip GOPATH from build paths

This should help fix some of our problems using plugins with go-ipfs.
This commit is contained in:
Steven Allen 2019-06-05 13:22:55 -07:00
parent f72ae26164
commit 545eb3a462

View File

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