Skip to content

Commit f82c44d

Browse files
committed
build: put GOPATH in /tmp on launchpad
1 parent 8704e8a commit f82c44d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/deb/ethereum/deb.rules

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
# Launchpad rejects Go's access to $HOME, use custom folders
88
export GOCACHE=/tmp/go-build
9+
export GOPATH=/tmp/gopath
910
export GOROOT_BOOTSTRAP={{.GoBootPath}}
1011

1112
override_dh_auto_clean:
@@ -19,7 +20,8 @@ override_dh_auto_build:
1920

2021
# We can't download external go modules within Launchpad, so we're shipping the
2122
# entire dependency source cache with go-ethereum.
22-
(mkdir -p $(HOME)/go/pkg/mod && mv .mod/* $(HOME)/go/pkg/mod)
23+
mkdir -p $(GOPATH)/pkg
24+
mv .mod $(GOPATH)/pkg/mod
2325

2426
# A fresh Go was built, all dependency downloads faked, hope build works now
2527
../.go/bin/go run build/ci.go install -git-commit={{.Env.Commit}} -git-branch={{.Env.Branch}} -git-tag={{.Env.Tag}} -buildnum={{.Env.Buildnum}} -pull-request={{.Env.IsPullRequest}}

0 commit comments

Comments
 (0)