Skip to content

Commit 4ee8d2d

Browse files
authored
travis, appveyor, build, Dockerfile: bump Go to 1.16 (#22351)
* travis, appveyor, build: bump Go to 1.16 * accounts/abi/bind: fix up Go mod files for Go 1.16
2 parents 142fbcf + 2743fb0 commit 4ee8d2d

File tree

7 files changed

+34
-29
lines changed

7 files changed

+34
-29
lines changed

.travis.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
allow_failures:
66
- stage: build
77
os: osx
8-
go: 1.14.x
8+
go: 1.15.x
99
env:
1010
- azure-osx
1111
- azure-ios
@@ -16,7 +16,7 @@ jobs:
1616
- stage: lint
1717
os: linux
1818
dist: xenial
19-
go: 1.15.x
19+
go: 1.16.x
2020
env:
2121
- lint
2222
git:
@@ -29,7 +29,7 @@ jobs:
2929
if: type = push
3030
os: linux
3131
dist: xenial
32-
go: 1.15.x
32+
go: 1.16.x
3333
env:
3434
- ubuntu-ppa
3535
- GO111MODULE=on
@@ -54,7 +54,7 @@ jobs:
5454
os: linux
5555
dist: xenial
5656
sudo: required
57-
go: 1.15.x
57+
go: 1.16.x
5858
env:
5959
- azure-linux
6060
- GO111MODULE=on
@@ -91,7 +91,7 @@ jobs:
9191
dist: xenial
9292
services:
9393
- docker
94-
go: 1.15.x
94+
go: 1.16.x
9595
env:
9696
- azure-linux-mips
9797
- GO111MODULE=on
@@ -139,7 +139,7 @@ jobs:
139139
git:
140140
submodules: false # avoid cloning ethereum/tests
141141
before_install:
142-
- curl https://dl.google.com/go/go1.15.5.linux-amd64.tar.gz | tar -xz
142+
- curl https://dl.google.com/go/go1.16.linux-amd64.tar.gz | tar -xz
143143
- export PATH=`pwd`/go/bin:$PATH
144144
- export GOROOT=`pwd`/go
145145
- export GOPATH=$HOME/go
@@ -157,7 +157,7 @@ jobs:
157157
- stage: build
158158
if: type = push
159159
os: osx
160-
go: 1.15.x
160+
go: 1.16.x
161161
env:
162162
- azure-osx
163163
- azure-ios
@@ -189,7 +189,7 @@ jobs:
189189
os: linux
190190
arch: amd64
191191
dist: xenial
192-
go: 1.15.x
192+
go: 1.16.x
193193
env:
194194
- GO111MODULE=on
195195
script:
@@ -200,7 +200,7 @@ jobs:
200200
os: linux
201201
arch: arm64
202202
dist: xenial
203-
go: 1.15.x
203+
go: 1.16.x
204204
env:
205205
- GO111MODULE=on
206206
script:
@@ -209,7 +209,7 @@ jobs:
209209
- stage: build
210210
os: linux
211211
dist: xenial
212-
go: 1.14.x
212+
go: 1.15.x
213213
env:
214214
- GO111MODULE=on
215215
script:
@@ -220,7 +220,7 @@ jobs:
220220
if: type = cron
221221
os: linux
222222
dist: xenial
223-
go: 1.15.x
223+
go: 1.16.x
224224
env:
225225
- azure-purge
226226
- GO111MODULE=on

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build Geth in a stock Go builder container
2-
FROM golang:1.15-alpine as builder
2+
FROM golang:1.16-alpine as builder
33

44
RUN apk add --no-cache make gcc musl-dev linux-headers git
55

Dockerfile.alltools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build Geth in a stock Go builder container
2-
FROM golang:1.15-alpine as builder
2+
FROM golang:1.16-alpine as builder
33

44
RUN apk add --no-cache make gcc musl-dev linux-headers git
55

accounts/abi/bind/bind_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,11 +1846,16 @@ func TestGolangBindings(t *testing.T) {
18461846
t.Fatalf("failed to convert binding test to modules: %v\n%s", err, out)
18471847
}
18481848
pwd, _ := os.Getwd()
1849-
replacer := exec.Command(gocmd, "mod", "edit", "-replace", "github.com/ethereum/go-ethereum="+filepath.Join(pwd, "..", "..", "..")) // Repo root
1849+
replacer := exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/ethereum/[email protected]", "-replace", "github.com/ethereum/go-ethereum="+filepath.Join(pwd, "..", "..", "..")) // Repo root
18501850
replacer.Dir = pkg
18511851
if out, err := replacer.CombinedOutput(); err != nil {
18521852
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out)
18531853
}
1854+
tidier := exec.Command(gocmd, "mod", "tidy")
1855+
tidier.Dir = pkg
1856+
if out, err := tidier.CombinedOutput(); err != nil {
1857+
t.Fatalf("failed to tidy Go module file: %v\n%s", err, out)
1858+
}
18541859
// Test the entire package and report any failures
18551860
cmd := exec.Command(gocmd, "test", "-v", "-count", "1")
18561861
cmd.Dir = pkg

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ environment:
2424
install:
2525
- git submodule update --init
2626
- rmdir C:\go /s /q
27-
- appveyor DownloadFile https://dl.google.com/go/go1.15.5.windows-%GETH_ARCH%.zip
28-
- 7z x go1.15.5.windows-%GETH_ARCH%.zip -y -oC:\ > NUL
27+
- appveyor DownloadFile https://dl.google.com/go/go1.16.windows-%GETH_ARCH%.zip
28+
- 7z x go1.16.windows-%GETH_ARCH%.zip -y -oC:\ > NUL
2929
- go version
3030
- gcc --version
3131

build/checksums.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# This file contains sha256 checksums of optional build dependencies.
22

3-
890bba73c5e2b19ffb1180e385ea225059eb008eb91b694875dd86ea48675817 go1.15.6.src.tar.gz
4-
940a73b45993a3bae5792cf324140dded34af97c548af4864d22fd6d49f3bd9f go1.15.6.darwin-amd64.tar.gz
5-
ad187f02158b9a9013ef03f41d14aa69c402477f178825a3940280814bcbb755 go1.15.6.linux-386.tar.gz
6-
3918e6cc85e7eaaa6f859f1bdbaac772e7a825b0eb423c63d3ae68b21f84b844 go1.15.6.linux-amd64.tar.gz
7-
f87515b9744154ffe31182da9341d0a61eb0795551173d242c8cad209239e492 go1.15.6.linux-arm64.tar.gz
8-
40ba9a57764e374195018ef37c38a5fbac9bbce908eab436370631a84bfc5788 go1.15.6.linux-armv6l.tar.gz
9-
5872eff6746a0a5f304272b27cbe9ce186f468454e95749cce01e903fbfc0e17 go1.15.6.windows-386.zip
10-
b7b3808bb072c2bab73175009187fd5a7f20ffe0a31739937003a14c5c4d9006 go1.15.6.windows-amd64.zip
11-
9d9dd5c217c1392f1b2ed5e03e1c71bf4cf8553884e57a38e68fd37fdcfe31a8 go1.15.6.freebsd-386.tar.gz
12-
609f065d855aed5a0b40ef0245aacbcc0b4b7882dc3b1e75ae50576cf25265ee go1.15.6.freebsd-amd64.tar.gz
13-
d4174fc217e749ac049eacc8827df879689f2246ac230d04991ae7df336f7cb2 go1.15.6.linux-ppc64le.tar.gz
14-
839cc6b67687d8bb7cb044e4a9a2eac0c090765cc8ec55ffe714dfb7cd51cf3a go1.15.6.linux-s390x.tar.gz
3+
7688063d55656105898f323d90a79a39c378d86fe89ae192eb3b7fc46347c95a go1.16.src.tar.gz
4+
6000a9522975d116bf76044967d7e69e04e982e9625330d9a539a8b45395f9a8 go1.16.darwin-amd64.tar.gz
5+
ea435a1ac6d497b03e367fdfb74b33e961d813883468080f6e239b3b03bea6aa go1.16.linux-386.tar.gz
6+
013a489ebb3e24ef3d915abe5b94c3286c070dfe0818d5bca8108f1d6e8440d2 go1.16.linux-amd64.tar.gz
7+
3770f7eb22d05e25fbee8fb53c2a4e897da043eb83c69b9a14f8d98562cd8098 go1.16.linux-arm64.tar.gz
8+
d1d9404b1dbd77afa2bdc70934e10fbfcf7d785c372efc29462bb7d83d0a32fd go1.16.linux-armv6l.tar.gz
9+
481492a17d42193d471b93b7a06da3555331bd833b76336afc87be820c48933f go1.16.windows-386.zip
10+
5cc88fa506b3d5c453c54c3ea218fc8dd05d7362ae1de15bb67986b72089ce93 go1.16.windows-amd64.zip
11+
d7d6c70b05a7c2f68b48aab5ab8cb5116b8444c9ddad131673b152e7cff7c726 go1.16.freebsd-386.tar.gz
12+
40b03216f6945fb6883a50604fc7f409a83f62171607229a9c598e701e684f8a go1.16.freebsd-amd64.tar.gz
13+
27a1aaa988e930b7932ce459c8a63ad5b3333b3a06b016d87ff289f2a11aacd6 go1.16.linux-ppc64le.tar.gz
14+
be4c9e4e2cf058efc4e3eb013a760cb989ddc4362f111950c990d1c63b27ccbe go1.16.linux-s390x.tar.gz
1515

1616
d998a84eea42f2271aca792a7b027ca5c1edfcba229e8e5a844c9ac3f336df35 golangci-lint-1.27.0-linux-armv7.tar.gz
1717
bf781f05b0d393b4bf0a327d9e62926949a4f14d7774d950c4e009fc766ed1d4 golangci-lint.exe-1.27.0-windows-amd64.zip

build/ci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ var (
152152
// This is the version of go that will be downloaded by
153153
//
154154
// go run ci.go install -dlgo
155-
dlgoVersion = "1.15.6"
155+
dlgoVersion = "1.16"
156156
)
157157

158158
var GOBIN, _ = filepath.Abs(filepath.Join("build", "bin"))

0 commit comments

Comments
 (0)