Update to Go 1.25 and golangci-lint 2.4.0 - #121
Merged
Conversation
Bump Go version to 1.25 across Dockerfiles, CI, and documentation. Update golangci-lint to 2.4.0 and adjust .golangci.yml configuration for new linter settings. Update checksums for new Go and golangci-lint versions. Minor code cleanup in gfp_decl.go and ping-pong.go.
purplesmoke05
approved these changes
Sep 1, 2025
Enabled 'gocheckcompilerdirectives' and 'reassign' linters, and added a 'revive' linter override for the 'crypto/bn256/' directory. Also removed a redundant linter message about 'os.MkdirTemp()' and made minor adjustments to linter configuration for improved code quality checks.
There was a problem hiding this comment.
Pull Request Overview
Updates project to use Go 1.25 and golangci-lint 2.4.0, improving the build environment and linting configuration to support the latest toolchain versions.
- Upgraded Go version from 1.23.1 to 1.25.0 across all project files
- Updated golangci-lint from 1.61.0 to 2.4.0 with modernized configuration format
- Performed minor code cleanup removing unused linter directives and formatting
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| go.mod | Updates Go module version to 1.25.0 |
| build/ci.go | Updates download version for Go toolchain and golangci-lint |
| build/checksums.txt | Updates checksums for Go 1.25.0 and golangci-lint 2.4.0 binaries |
| README.md | Updates documentation to reflect Go 1.25 requirement |
| Dockerfile* | Updates base images to use golang:1.25-alpine |
| .golangci.yml | Modernizes linter configuration for golangci-lint 2.4.0 |
| .github/workflows/* | Updates CI workflows to use Go 1.25 |
| crypto/bn256/cloudflare/gfp_decl.go | Removes deprecated linter directives |
| p2p/simulations/examples/ping-pong.go | Removes empty line for formatting |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Close #119 , #120