aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAnton Evangelatov <anton.evangelatov@gmail.com>2019-05-17 07:06:20 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-05-17 07:06:20 +0800
commit8cce620311cdd17f388e8d258a02eb8ccb35adb5 (patch)
tree8b8bf2640edab383d3bbd6f64bfb38117cef7048 /build
parentf5d89cdb72c1e82e9deb54754bef8dd20bf12591 (diff)
downloadgo-tangerine-8cce620311cdd17f388e8d258a02eb8ccb35adb5.tar
go-tangerine-8cce620311cdd17f388e8d258a02eb8ccb35adb5.tar.gz
go-tangerine-8cce620311cdd17f388e8d258a02eb8ccb35adb5.tar.bz2
go-tangerine-8cce620311cdd17f388e8d258a02eb8ccb35adb5.tar.lz
go-tangerine-8cce620311cdd17f388e8d258a02eb8ccb35adb5.tar.xz
go-tangerine-8cce620311cdd17f388e8d258a02eb8ccb35adb5.tar.zst
go-tangerine-8cce620311cdd17f388e8d258a02eb8ccb35adb5.zip
build: disable swarm packages (#19585)
* build: disable swarm packages * build: remove allCrossCompiledArchiveFiles; inline allToolsArchiveFiles * build: get rid of some superfluous comments
Diffstat (limited to 'build')
-rw-r--r--build/ci.go38
1 files changed, 4 insertions, 34 deletions
diff --git a/build/ci.go b/build/ci.go
index dbf158005..50433c892 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -60,7 +60,6 @@ import (
"github.com/ethereum/go-ethereum/internal/build"
"github.com/ethereum/go-ethereum/params"
- sv "github.com/ethereum/go-ethereum/swarm/version"
)
var (
@@ -83,12 +82,6 @@ var (
executablePath("clef"),
}
- // Files that end up in the swarm*.zip archive.
- swarmArchiveFiles = []string{
- "COPYING",
- executablePath("swarm"),
- }
-
// A debian package is created for all executables listed here.
debExecutables = []debExecutable{
{
@@ -126,13 +119,6 @@ var (
}
// A debian package is created for all executables listed here.
- debSwarmExecutables = []debExecutable{
- {
- BinaryName: "swarm",
- PackageName: "ethereum-swarm",
- Description: "Ethereum Swarm daemon and tools",
- },
- }
debEthereum = debPackage{
Name: "ethereum",
@@ -140,21 +126,11 @@ var (
Executables: debExecutables,
}
- debSwarm = debPackage{
- Name: "ethereum-swarm",
- Version: sv.Version,
- Executables: debSwarmExecutables,
- }
-
// Debian meta packages to build and push to Ubuntu PPA
debPackages = []debPackage{
- debSwarm,
debEthereum,
}
- // Packages to be cross-compiled by the xgo command
- allCrossCompiledArchiveFiles = append(allToolsArchiveFiles, swarmArchiveFiles...)
-
// Distros for which packages are created.
// Note: vivid is unsupported because there is no golang-1.6 package for it.
// Note: wily is unsupported because it was officially deprecated on lanchpad.
@@ -409,9 +385,6 @@ func doArchive(cmdline []string) {
basegeth = archiveBasename(*arch, params.ArchiveVersion(env.Commit))
geth = "geth-" + basegeth + ext
alltools = "geth-alltools-" + basegeth + ext
-
- baseswarm = archiveBasename(*arch, sv.ArchiveVersion(env.Commit))
- swarm = "swarm-" + baseswarm + ext
)
maybeSkipArchive(env)
if err := build.WriteArchive(geth, gethArchiveFiles); err != nil {
@@ -420,10 +393,7 @@ func doArchive(cmdline []string) {
if err := build.WriteArchive(alltools, allToolsArchiveFiles); err != nil {
log.Fatal(err)
}
- if err := build.WriteArchive(swarm, swarmArchiveFiles); err != nil {
- log.Fatal(err)
- }
- for _, archive := range []string{geth, alltools, swarm} {
+ for _, archive := range []string{geth, alltools} {
if err := archiveUpload(archive, *upload, *signer); err != nil {
log.Fatal(err)
}
@@ -586,8 +556,8 @@ func isUnstableBuild(env build.Environment) bool {
}
type debPackage struct {
- Name string // the name of the Debian package to produce, e.g. "ethereum", or "ethereum-swarm"
- Version string // the clean version of the debPackage, e.g. 1.8.12 or 0.3.0, without any metadata
+ Name string // the name of the Debian package to produce, e.g. "ethereum"
+ Version string // the clean version of the debPackage, e.g. 1.8.12, without any metadata
Executables []debExecutable // executables to be included in the package
}
@@ -1023,7 +993,7 @@ func doXgo(cmdline []string) {
if *alltools {
args = append(args, []string{"--dest", GOBIN}...)
- for _, res := range allCrossCompiledArchiveFiles {
+ for _, res := range allToolsArchiveFiles {
if strings.HasPrefix(res, GOBIN) {
// Binary tool found, cross build it explicitly
args = append(args, "./"+filepath.Join("cmd", filepath.Base(res)))