Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
c1db636f
Unverified
Commit
c1db636f
authored
Nov 21, 2019
by
Péter Szilágyi
Committed by
GitHub
Nov 21, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20360 from karalabe/ppa-fix-cigo-clean
build: skip go clean on PPA, messes with the module trick
parents
b6d4f6b6
5b558ad9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
22 deletions
+6
-22
Makefile
Makefile
+1
-1
ci.go
build/ci.go
+1
-1
clean_go_build_cache.sh
build/clean_go_build_cache.sh
+0
-19
deb.rules
build/deb/ethereum/deb.rules
+4
-1
No files found.
Makefile
View file @
c1db636f
...
@@ -36,7 +36,7 @@ lint: ## Run linters.
...
@@ -36,7 +36,7 @@ lint: ## Run linters.
build/env.sh go run build/ci.go lint
build/env.sh go run build/ci.go lint
clean
:
clean
:
./build/clean_go_build_cache.sh
go clean
-cache
rm
-fr
build/_workspace/pkg/
$(GOBIN)
/
*
rm
-fr
build/_workspace/pkg/
$(GOBIN)
/
*
# The devtools target installs tools required for 'go generate'.
# The devtools target installs tools required for 'go generate'.
...
...
build/ci.go
View file @
c1db636f
...
@@ -530,7 +530,7 @@ func doDebianSource(cmdline []string) {
...
@@ -530,7 +530,7 @@ func doDebianSource(cmdline []string) {
log
.
Fatalf
(
"Failed to copy Go module dependencies: %v"
,
err
)
log
.
Fatalf
(
"Failed to copy Go module dependencies: %v"
,
err
)
}
}
// Run the packaging and upload to the PPA
// Run the packaging and upload to the PPA
debuild
:=
exec
.
Command
(
"debuild"
,
"-S"
,
"-sa"
,
"-us"
,
"-uc"
,
"-d"
,
"-Zxz"
)
debuild
:=
exec
.
Command
(
"debuild"
,
"-S"
,
"-sa"
,
"-us"
,
"-uc"
,
"-d"
,
"-Zxz"
,
"-nc"
)
debuild
.
Dir
=
pkgdir
debuild
.
Dir
=
pkgdir
build
.
MustRun
(
debuild
)
build
.
MustRun
(
debuild
)
...
...
build/clean_go_build_cache.sh
deleted
100755 → 0
View file @
b6d4f6b6
#!/bin/sh
# Cleaning the Go cache only makes sense if we actually have Go installed... or
# if Go is actually callable. This does not hold true during deb packaging, so
# we need an explicit check to avoid build failures.
if
!
command
-v
go
>
/dev/null
;
then
exit
fi
version_gt
()
{
test
"
$(
printf
'%s\n'
"
$@
"
|
sort
-V
|
head
-n
1
)
"
!=
"
$1
"
}
golang_version
=
$(
go version |cut
-d
' '
-f3
|sed
's/go//'
)
# Clean go build cache when go version is greater than or equal to 1.10
if
!(
version_gt 1.10
$golang_version
)
;
then
go clean
-cache
fi
build/deb/ethereum/deb.rules
View file @
c1db636f
...
@@ -4,10 +4,13 @@
...
@@ -4,10 +4,13 @@
# Uncomment this to turn on verbose mode.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#export DH_VERBOSE=1
# Launchpad rejects Go's access to $HOME
/.cache, use custom folder
# Launchpad rejects Go's access to $HOME
, use custom folders
export
GOCACHE
=
/tmp/go-build
export
GOCACHE
=
/tmp/go-build
export
GOROOT_BOOTSTRAP
={{
.GoBootPath
}}
export
GOROOT_BOOTSTRAP
={{
.GoBootPath
}}
override_dh_auto_clean
:
# Don't try to be smart Launchpad, we know our build rules better than you
override_dh_auto_build
:
override_dh_auto_build
:
# We can't download a fresh Go within Launchpad, so we're shipping and building
# We can't download a fresh Go within Launchpad, so we're shipping and building
# one on the fly. However, we can't build it inside the go-ethereum folder as
# one on the fly. However, we can't build it inside the go-ethereum folder as
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment