Skip to content

Run go fix#8435

Merged
tim-barry merged 9 commits intomasterfrom
tim/go-fix-1.26
Feb 20, 2026
Merged

Run go fix#8435
tim-barry merged 9 commits intomasterfrom
tim/go-fix-1.26

Conversation

@tim-barry
Copy link
Contributor

@tim-barry tim-barry commented Feb 20, 2026

This PR applies several (not all) fixers from go 1.26. Note the repository still uses go version 1.25.1 - all the fixes were checked to be compatible. See individual commits for more info about specific fix types.
It also adds a go-fix Makefile step which is run as part of CI (which currently only runs the fixers available in go1.25, as that is the go version currently used by the repository).

Fixers run:

  • any
  • forvar
  • rangeint
  • waitgroup
  • slicescontains

tarakby and others added 6 commits February 19, 2026 19:30
The loop variable assigned by a range statement inherits the type of the
variable used to create the range, including signedness, so in
```
    for i := range X { ... }
```
`i` has the same integer type as `X`.
slices package was introduced in go 1.21
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 20, 2026

Important

Review skipped

Too many files!

This PR contains 185 files, which is 35 over the limit of 150.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch tim/go-fix-1.26

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@tim-barry tim-barry marked this pull request as ready for review February 20, 2026 17:41
@tim-barry tim-barry requested a review from a team as a code owner February 20, 2026 17:41
Copy link
Contributor

@tarakby tarakby left a comment

Choose a reason for hiding this comment

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

Nice!
Should we add this commit to your PR so that future code changes remain compliant?

d61dd6d

@tim-barry
Copy link
Contributor Author

@tarakby I'm not sure if we want to automatically run go fix because I'm not sure yet that we will want all the fixes. For now I think we can add it, and revisit the decision when we actually upgrade to go 1.26.

@tim-barry tim-barry enabled auto-merge February 20, 2026 18:34
@tim-barry tim-barry added this pull request to the merge queue Feb 20, 2026
Merged via the queue into master with commit 45744b5 Feb 20, 2026
61 checks passed
@tim-barry tim-barry deleted the tim/go-fix-1.26 branch February 20, 2026 18:59
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.

4 participants