Skip to content

Commit

Permalink
Merge pull request #6412 from ipfs/build/reproducible
Browse files Browse the repository at this point in the history
build: strip GOPATH from build paths
  • Loading branch information
Stebalien committed Jun 11, 2019
2 parents c7dc3c3 + 545eb3a commit 39e6e17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mk/golang.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39e6e17

Please sign in to comment.