-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* go.mod: update github.com/golang/snappy See #21934 in upstream geth. * accounts/abi/bind: fix up Go mod files for Go 1.16 conflict with module rename that was fixed * Dockerfile: bump to Go 1.16 base images * travis, appveyor, checksums: bump Go to 1.16 See ethereum/go-ethereum@c5023e1 * Update builders to go1.16 * Fix panic with discv5 This is due to a change in golang 1.16 which panics when using a non-unique hash in a HMAC. This change copies the upstream change which uses a new sha instance rather than the existing hash value. Discv5 is next touched in: ethereum/go-ethereum#21647 where it is reworked. Full history of the encoding test: git log geth/master --full-history -- p2p/discover/v5_encoding_test.go * Update go mobile * Update libs patch for android build Co-authored-by: Péter Szilágyi <[email protected]>
- Loading branch information
Showing
15 changed files
with
62 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ jobs: | |
allow_failures: | ||
- stage: build | ||
os: osx | ||
go: 1.14.x | ||
go: 1.16.x | ||
env: | ||
- azure-osx | ||
- azure-ios | ||
|
@@ -16,7 +16,7 @@ jobs: | |
- stage: lint | ||
os: linux | ||
dist: xenial | ||
go: 1.14.x | ||
go: 1.16.x | ||
env: | ||
- lint | ||
git: | ||
|
@@ -27,7 +27,7 @@ jobs: | |
- stage: build | ||
os: linux | ||
dist: xenial | ||
go: 1.13.x | ||
go: 1.15.x | ||
env: | ||
- GO111MODULE=on | ||
script: | ||
|
@@ -37,7 +37,7 @@ jobs: | |
- stage: build | ||
os: linux | ||
dist: xenial | ||
go: 1.13.x | ||
go: 1.15.x | ||
env: | ||
- GO111MODULE=on | ||
script: | ||
|
@@ -47,7 +47,7 @@ jobs: | |
- stage: build | ||
os: linux | ||
dist: xenial | ||
go: 1.13.x | ||
go: 1.15.x | ||
env: | ||
- GO111MODULE=on | ||
script: | ||
|
@@ -59,7 +59,7 @@ jobs: | |
os: linux | ||
arch: amd64 | ||
dist: xenial | ||
go: 1.14.x | ||
go: 1.16.x | ||
env: | ||
- GO111MODULE=on | ||
script: | ||
|
@@ -71,7 +71,7 @@ jobs: | |
os: linux | ||
arch: arm64 | ||
dist: xenial | ||
go: 1.14.x | ||
go: 1.16.x | ||
env: | ||
- GO111MODULE=on | ||
script: | ||
|
@@ -81,7 +81,7 @@ jobs: | |
- stage: build | ||
os: osx | ||
osx_image: xcode11.3 | ||
go: 1.14.x | ||
go: 1.16.x | ||
env: | ||
- GO111MODULE=on | ||
script: | ||
|
@@ -102,7 +102,7 @@ jobs: | |
if: type = push | ||
os: linux | ||
dist: xenial | ||
go: 1.14.x | ||
go: 1.16.x | ||
env: | ||
- ubuntu-ppa | ||
- GO111MODULE=on | ||
|
@@ -119,15 +119,15 @@ jobs: | |
- python-paramiko | ||
script: | ||
- echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts | ||
- go run build/ci.go debsrc -goversion 1.14.2 -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <[email protected]>" | ||
- go run build/ci.go debsrc -goversion 1.16.2 -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <[email protected]>" | ||
|
||
# This builder does the Linux Azure uploads | ||
- stage: build | ||
if: type = push | ||
os: linux | ||
dist: xenial | ||
sudo: required | ||
go: 1.14.x | ||
go: 1.16.x | ||
env: | ||
- azure-linux | ||
- GO111MODULE=on | ||
|
@@ -164,7 +164,7 @@ jobs: | |
dist: xenial | ||
services: | ||
- docker | ||
go: 1.14.x | ||
go: 1.16.x | ||
env: | ||
- azure-linux-mips | ||
- GO111MODULE=on | ||
|
@@ -212,7 +212,7 @@ jobs: | |
git: | ||
submodules: false # avoid cloning ethereum/tests | ||
before_install: | ||
- curl https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz | tar -xz | ||
- curl https://dl.google.com/go/go1.16.linux-amd64.tar.gz | tar -xz | ||
- export PATH=`pwd`/go/bin:$PATH | ||
- export GOROOT=`pwd`/go | ||
- export GOPATH=$HOME/go | ||
|
@@ -230,7 +230,7 @@ jobs: | |
- stage: build | ||
if: type = push | ||
os: osx | ||
go: 1.14.x | ||
go: 1.16.x | ||
env: | ||
- azure-osx | ||
- azure-ios | ||
|
@@ -262,7 +262,7 @@ jobs: | |
if: type = cron | ||
os: linux | ||
dist: xenial | ||
go: 1.14.x | ||
go: 1.16.x | ||
env: | ||
- azure-purge | ||
- GO111MODULE=on | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1746,11 +1746,16 @@ func TestGolangBindings(t *testing.T) { | |
t.Fatalf("failed to convert binding test to modules: %v\n%s", err, out) | ||
} | ||
pwd, _ := os.Getwd() | ||
replacer := exec.Command(gocmd, "mod", "edit", "-replace", "github.com/celo-org/celo-blockchain="+filepath.Join(pwd, "..", "..", "..")) // Repo root | ||
replacer := exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/celo-org/[email protected]", "-replace", "github.com/celo-org/celo-blockchain="+filepath.Join(pwd, "..", "..", "..")) // Repo root | ||
replacer.Dir = pkg | ||
if out, err := replacer.CombinedOutput(); err != nil { | ||
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out) | ||
} | ||
tidier := exec.Command(gocmd, "mod", "tidy") | ||
tidier.Dir = pkg | ||
if out, err := tidier.CombinedOutput(); err != nil { | ||
t.Fatalf("failed to tidy Go module file: %v\n%s", err, out) | ||
} | ||
// Test the entire package and report any failures | ||
cmd := exec.Command(gocmd, "test", "-v", "-count", "1") | ||
cmd.Dir = pkg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters