Commit graph

273 commits

Author SHA1 Message Date
Felix Lange
9ad6094a5d build/bot: try installing gcc-multilib in linux container 2022-09-29 00:51:51 +02:00
Felix Lange
c591acb765 build/bot: remove linux upload 2022-09-29 00:40:04 +02:00
Felix Lange
60c6c4a3f3 build/bot: remove signify 2022-09-29 00:37:40 +02:00
Felix Lange
3421d0773f build: ensure GOMODCACHE is not set in dependency download for deb 2022-09-29 00:34:33 +02:00
Felix Lange
51b6733055 define HOME in ppa container 2022-09-29 00:24:34 +02:00
Felix Lange
33be0abec2 build/bot: configure go cache 2022-09-29 00:16:31 +02:00
Felix Lange
12a1050704 fix go image 2022-09-29 00:04:14 +02:00
Felix Lange
78f1dfd7d8 build/bot: add linux build 2022-09-28 23:43:59 +02:00
Felix Lange
ea0e822b00 print env 2022-09-28 23:14:52 +02:00
Felix Lange
e5f655382b build: print PPA key 2022-09-28 23:10:55 +02:00
Felix Lange
1daea03078 build/bot: fix git error 2022-09-28 22:54:59 +02:00
Felix Lange
71d3198eb6 add git in ppa image 2022-09-28 22:49:26 +02:00
Felix Lange
c2720b2cb8 update ppa script 2022-09-28 22:48:10 +02:00
Felix Lange
d169b9726d fix entrypoint 2022-09-28 22:41:02 +02:00
Felix Lange
a38ee8a8d3 print hi 2022-09-28 22:36:56 +02:00
Felix Lange
b0eb3f6496 print env 2022-09-28 22:35:10 +02:00
Felix Lange
7b0b4ad2e6 build: add BUILD_ prefix 2022-09-28 22:26:57 +02:00
Felix Lange
040edfec20 build: dump env 2022-09-28 21:35:51 +02:00
ligi
7e7868666e Add apt update to make apt install work 2022-09-28 21:35:32 +02:00
Felix Lange
84964eba55 build/bot: docker PPA buildd 2022-09-28 21:35:32 +02:00
Felix Lange
9b19c6b4be build/bot: remove gpg config 2022-09-28 21:35:32 +02:00
Felix Lange
625b48ad73 build/bot: configure gpg for non-interactive use 2022-09-28 21:35:32 +02:00
Felix Lange
48cc4a2f54 build/bot: dump PPA key 2022-09-28 21:35:32 +02:00
Felix Lange
8b913e5e01 build/bot: disable PPA upload 2022-09-28 21:35:31 +02:00
Felix Lange
23dd9668d2 build: enable archives on buildbot-testing 2022-09-28 21:35:31 +02:00
Felix Lange
65f3c1b46f
internal/version: use gitCommit injection in version handling code (#25851)
This changes the CI build to store the git commit and date into package
internal/version instead of package main. Doing this essentially merges our
two ways of tracking the go-ethereum version into a single place, achieving
two objectives:

- Bad block reports, which use version.Info(), will now have the git commit
  information even when geth is built in an environment such as
  launchpad.net where git access is unavailable.

- For geth builds created by `go build ./cmd/geth` (i.e. not using `go run
  build/ci.go install`), git information stored by the go tool is now used
  in the p2p node name as well as in `geth version` and `geth
  version-check`.
2022-09-23 14:08:25 +02:00
Felix Lange
b628d72766
build: upgrade to go 1.19 (#25726)
This changes the CI / release builds to use the latest Go version. It also
upgrades golangci-lint to a newer version compatible with Go 1.19.

In Go 1.19, godoc has gained official support for links and lists. The
syntax for code blocks in doc comments has changed and now requires a
leading tab character. gofmt adapts comments to the new syntax
automatically, so there are a lot of comment re-formatting changes in this
PR. We need to apply the new format in order to pass the CI lint stage with
Go 1.19.

With the linter upgrade, I have decided to disable 'gosec' - it produces
too many false-positive warnings. The 'deadcode' and 'varcheck' linters
have also been removed because golangci-lint warns about them being
unmaintained. 'unused' provides similar coverage and we already have it
enabled, so we don't lose much with this change.
2022-09-10 13:25:40 +02:00
uji
6d882a51e0
build: fix ignored errors (#25591) 2022-08-30 14:40:15 +02:00
Justin Traglia
2c5648d891
all: fix some typos (#25551)
* Fix some typos

* Fix some mistakes

* Revert 4byte.json

* Fix an incorrect fix

* Change files to fails
2022-08-19 09:00:21 +03:00
0xe3b0c4
c0cc6f6362
build: add static linking support (#25492)
This adds support for building statically-linked executables using ci.go.

Static linking is enabled by default in Docker builds, making it possible to
use the geth executable in any Docker image, regardless of the Linux
distribution the Dockerfile is based on.

Co-authored-by: Felix Lange <fjl@twurst.com>
2022-08-10 10:30:59 +02:00
Marius Kjærstad
93eabcaa4e
build: upgrade -dlgo version to Go 1.18.5 2022-08-01 18:21:58 +02:00
Marius Kjærstad
9f9657850f
build: upgrade -dlgo version to Go 1.18.4 2022-07-12 23:19:41 +02:00
Marius Kjærstad
ed7a80f7fd
build: upgrade -dlgo version to Go 1.18.3 2022-07-06 00:12:39 +02:00
Felix Lange
75ebeb7fe0
build/deb: fix auto-completion install paths (#25204) 2022-06-29 23:19:30 +02:00
Felix Lange
63b2d49b5b
build: upgrade to golangci-lint v1.46.2 (#25202)
This upgrade is required to fix lint issues with urfave/cli/v2, which
uses generics when built with Go 1.18
2022-06-29 20:49:04 +02:00
willian.eth
ea0bf08547
build: fix auto-completion scripts and include them in .deb package (#25195)
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-06-29 19:41:39 +02:00
willian.eth
52ed3570c4
cmd: migrate to urfave/cli/v2 (#24751)
This change updates our urfave/cli dependency to the v2 branch of the library.
There are some Go API changes in cli v2:

- Flag values can now be accessed using the methods ctx.Bool,
  ctx.Int, ctx.String, ... regardless of whether the flag is 'local' or
  'global'.

- v2 has built-in support for flag categories. Our home-grown category
  system is removed and the categories of flags are assigned as part of
  the flag definition.

For users, there is only one observable difference with cli v2: flags must now
strictly appear before regular arguments. For example, the following command is
now invalid:

   geth account import mykey.json --password file.txt

Instead, the command must be invoked as follows:

   geth account import --password file.txt mykey.json
2022-06-27 18:22:36 +02:00
Felix Lange
9244d5cd61
all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
Felix Lange
2b0d0ce8b0
build/bot: create .ssh directory in ppa-build.sh (#24922) 2022-05-20 17:25:17 +02:00
Felix Lange
d4faff965f
build/bot: avoid install of python-bzrlib, python-paramiko in PPA build (#24921) 2022-05-20 17:19:22 +02:00
Felix Lange
adcad1cd39
build/bot: add ppa-build.sh (#24919) 2022-05-20 16:46:38 +02:00
Felix Lange
04b6c56375
build/bot: remove xctool invocation in macos build script (#24918) 2022-05-20 15:52:22 +02:00
Felix Lange
8cab5e171c
build/bot: add mac build script (#24917) 2022-05-20 15:03:15 +02:00
Håvard Anda Estensen
07508ac0e9
all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
Martin Holst Swende
c164aed1d1
build: ppa build for jammy (ubuntu 22.04) 2022-05-04 11:41:24 +02:00
Evgeny Kolyakov
8d84a701a5
build: fix formatted logs (#24807)
Changed `log.Fatal` to `log.Fatalf()` as it has a parameter...
2022-05-04 00:37:37 +03:00
s7v7nislands
5a584c2133
all: use common.FileExist for checking file existence (#24748) 2022-04-27 11:48:02 +02:00
s7v7nislands
7ab15490e9
all: use 'embed' instead of go-bindata (#24744) 2022-04-25 11:15:14 +02:00
Marius Kjærstad
9f7bcb9d76
build: upgrade -dlgo version to Go 1.18.1 (#24689)
* build: upgrade -dlgo version to Go 1.18.1

* build: upgrade -dlgo version for macOS to Go 1.18.1
2022-04-14 08:45:04 +03:00
ucwong
d4d288e3f1
build: add imports for go generate tools (#24682)
This adds a tools.go file to import all command packages used for
go:generate. Doing so makes it possible to execute go-based code
generators using 'go run', locking in the tool version using go.mod.

Co-authored-by: Felix Lange <fjl@twurst.com>
2022-04-12 20:24:02 +02:00