-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bump go v1.20 #799
bump go v1.20 #799
Conversation
8ab5145
to
c2c139f
Compare
go-libp2p v0.25.1 was released, supporting go 1.20 challenge unlocked 🥳 but on a first look at these errors, it seems we need to wait for kubo release as well?
https://github.com/vocdoni/vocdoni-node/actions/runs/4168785041/jobs/7215986676 |
Yeah, it appears that libp2p itself had breaking changes, so upstreams like ipfs need to be updated. See ipfs/kubo#9647. Looks like we need to wait for another release. |
I would wait until we release Kubo 0.19.0, first RC should be going out within the next week: ipfs/kubo#9502 |
Thanks :) I empathize with Marten and having to update quic-go for every Go release. Hopefully that will go away now that golang/go#44886 is gaining traction. It's just unfortunate that we're stuck not being able to use Go 1.20 two weeks after its release, but we can live with 1.19.x for another week for sure. |
merging this will fix #843 |
f2328b3
to
e374ab6
Compare
this is neverending but i see the light at the end of the tunnel |
9ad87e2
to
420759e
Compare
all checks, tests, staticchecks and whatever checks pass now, |
@altergui we need to fix conflicts |
420759e
to
7abf3ed
Compare
Needed bumps: * ci: bump staticcheck 2023.1.2 (supports go v1.20) * go get github.com/libp2p/go-libp2p@v0.25.1 * go get github.com/ipfs/kubo@v0.19.0-rc1 * go mod tidy Import path changes: * github.com/libp2p/go-libp2p-core -> github.com/libp2p/go-libp2p/core * github.com/libp2p/go-libp2p-connmgr -> github.com/libp2p/go-libp2p/p2p/net/connmgr * github.com/ipfs/go-ipfs-files -> github.com/ipfs/go-libipfs/files Code changes: * ipfs: config.NewOptionalInteger() and config.NewOptionalDuration() * ipfsconnect/subpub: connmanager.WithGracePeriod(time.Second*10)) * ipfsconnect/subpub: c.Apply(libp2p.Defaults) * ipfsconnect/subpub: disable TestSubPub until fixed * util/net_test: fix go vet warning * api/autoswag: fix gofmt issue * all: rand.Seed() no longer needed in go v1.20 according to https://tip.golang.org/doc/go1.20#math/rand The math/rand package now automatically seeds the global random number generator with a random value, and the top-level Seed function has been deprecated * benchmark/vochain: fix 'this value of processID is never used' * rpcclient/util: use crypto/rand.Int instead of deprecated math/rand.Intn
7abf3ed
to
915c918
Compare
needs bumping go-libp2p and kubo as well
this is blocked by libp2p/go-libp2p#2040 which was merged a few days ago but not yet included in a release, and then likely waiting for kubo to do a release as well