Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades the project from Go 1.23.9 to Go 1.24.7 to prepare for upcoming features and align with the latest Go release cycle. The changes address Go 1.24's deprecation of rand.Seed() by replacing global seeding with local seeded random sources.
- Upgrades Go version and dependencies in go.mod
- Replaces deprecated
rand.Seed()calls withrand.New(rand.NewSource())pattern - Updates generated code files to reflect new canoto version
Reviewed Changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| go.mod | Upgrades Go version from 1.23.9 to 1.24.7 and updates various dependencies |
| utils/bag/bag_benchmark_test.go | Removes global rand.Seed init and adds local seeded sources to benchmarks |
| tests/e2e/x/transfer/virtuous.go | Removes deprecated rand.Seed call |
| network/tracked_ip.go | Removes global rand.Seed init function |
| ids/bits_test.go | Replaces rand.Seed with local seeded source |
| chains/atomic/atomictest/shared_memory.go | Replaces rand.Seed calls with local seeded sources |
| Multiple .canoto.go files | Updates generated code version from v0.17.1 to v0.17.2 |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
I forgot during my last review that we also need to update CONTRIBUTING.md and README.md and the docstring on go.mod and possibly our golangci. See 1ecddc7 as an example.
|
I'm not sure that the comment about linting is correct. It seems like we need to be updating the golangci-lint version as well. |
|
actually maybe this is a me issue. |
|
yeah I just needed to update golang locally. |
Why this should be merged
Go 1.25 has come out, so it's time to upgrade to go 1.24! Here's the release differences if you want to look: https://tip.golang.org/doc/go1.24.
Specifically,
rand.Seeddoesn't actually set the seed anymore, so I maskedrandwith the seeded source when necessary.The following features will be supported, so this is blocking these items:
runtime.AddCleanupfor Firewood proposalsAlthough golangci-lint v2.1.6 isn't built with 1.24, it is supported, so no change is necessary (but it should likely be updated to a newer version eventually).
How this works
Upgrades go.mod and ran
go mod tidyHow this was tested
CI
Need to be documented in RELEASES.md?
No