Skip to content

Conversation

@trianglesphere
Copy link
Contributor

@trianglesphere trianglesphere commented Mar 24, 2021

Description

This updates go-celo to golang 1.16.

Changes

Tested

Unit tests & CI

Related issues

Joshua Gutow and others added 6 commits March 24, 2021 14:08
conflict with module rename that was fixed
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
@trianglesphere trianglesphere requested review from a team and oneeman as code owners March 24, 2021 20:37
@trianglesphere trianglesphere requested review from piersy and removed request for a team March 24, 2021 20:37
Copy link
Contributor

@oneeman oneeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terrific!

@oneeman
Copy link
Contributor

oneeman commented Mar 24, 2021

CI shows the ios build failing

@trianglesphere
Copy link
Contributor Author

CI shows the ios build failing

Looking into it atm. Looks like there was some update in go 1.16 that's messing with go.mod/go.sum files in a weird way.

@trianglesphere
Copy link
Contributor Author

I think I've tracked it down to the fact that our version of go mobile is out of date with master and their upstream does create a go.sum file. If that doesn't resolve this there's another golang issue that looks similar that looks like it will be released with 1.16.3

@trianglesphere trianglesphere merged commit a7c2cbf into master Mar 25, 2021
@trianglesphere trianglesphere deleted the trianglesphere/go-1.16 branch March 25, 2021 16:34
trianglesphere pushed a commit that referenced this pull request Mar 25, 2021
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade client to use Go 1.16.x

4 participants