Skip to content

Commit 5b558ad

Browse files
committed
build: skip go clean on PPA, messes with the module trick
1 parent b6d4f6b commit 5b558ad

4 files changed

Lines changed: 6 additions & 22 deletions

File tree

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ lint: ## Run linters.
3636
build/env.sh go run build/ci.go lint
3737

3838
clean:
39-
./build/clean_go_build_cache.sh
39+
go clean -cache
4040
rm -fr build/_workspace/pkg/ $(GOBIN)/*
4141

4242
# The devtools target installs tools required for 'go generate'.

‎build/ci.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ func doDebianSource(cmdline []string) {
530530
log.Fatalf("Failed to copy Go module dependencies: %v", err)
531531
}
532532
// Run the packaging and upload to the PPA
533-
debuild := exec.Command("debuild", "-S", "-sa", "-us", "-uc", "-d", "-Zxz")
533+
debuild := exec.Command("debuild", "-S", "-sa", "-us", "-uc", "-d", "-Zxz", "-nc")
534534
debuild.Dir = pkgdir
535535
build.MustRun(debuild)
536536

‎build/clean_go_build_cache.sh‎

Lines changed: 0 additions & 19 deletions
This file was deleted.

‎build/deb/ethereum/deb.rules‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
# Uncomment this to turn on verbose mode.
55
#export DH_VERBOSE=1
66

7-
# Launchpad rejects Go's access to $HOME/.cache, use custom folder
7+
# Launchpad rejects Go's access to $HOME, use custom folders
88
export GOCACHE=/tmp/go-build
99
export GOROOT_BOOTSTRAP={{.GoBootPath}}
1010

11+
override_dh_auto_clean:
12+
# Don't try to be smart Launchpad, we know our build rules better than you
13+
1114
override_dh_auto_build:
1215
# We can't download a fresh Go within Launchpad, so we're shipping and building
1316
# one on the fly. However, we can't build it inside the go-ethereum folder as

0 commit comments

Comments
 (0)