File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,22 @@ GO111MODULE = on
4
4
GOCC ?= go
5
5
GOFLAGS ?=
6
6
7
- # make reproducable
8
- GOFLAGS += -asmflags=all=-trimpath="$(GOPATH ) " -gcflags=all=-trimpath="$(GOPATH ) "
9
-
10
7
# If set, override the install location for plugins
11
8
IPFS_PATH ?= $(HOME ) /.ipfs
12
9
13
10
# If set, override the IPFS version to build against. This _modifies_ the local
14
11
# go.mod/go.sum files and permanently sets this version.
15
12
IPFS_VERSION ?= $(lastword $(shell $(GOCC ) list -m github.com/ipfs/go-ipfs) )
16
13
14
+ # make reproducible
15
+ ifneq ($(findstring /,$(IPFS_VERSION ) ) ,)
16
+ # Locally built go-ipfs
17
+ GOFLAGS += -asmflags=all=-trimpath="$(GOPATH ) " -gcflags=all=-trimpath="$(GOPATH ) "
18
+ else
19
+ # Remote version of go-ipfs (e.g. via `go get -trimpath` or official distribution)
20
+ GOFLAGS += -trimpath
21
+ endif
22
+
17
23
.PHONY : install build
18
24
19
25
go.mod : FORCE
You can’t perform that action at this time.
0 commit comments