Upgrade to Go 1.26 and add go fix ./... to CI #108

Closed
opened 2026-02-18 12:47:15 -06:00 by noe.trevino · 0 comments
Owner

Summary

Upgrade the project from Go 1.25.0 to Go 1.26.0 and add go fix ./... as a CI gate.

Motivation

Go 1.26 ships with a completely revamped go fix command that serves as the home for Go's modernizers. It provides a push-button way to update codebases to the latest idioms and core library APIs. Adding it to CI ensures the codebase stays modernized automatically.

Key Go 1.26 features:

  • Revamped go fix with dozens of modernizers
  • Green Tea garbage collector (10-40% GC overhead reduction)
  • new() with initial value expressions
  • Self-referential generic type constraints
  • ~30% faster cgo calls
  • New errors.AsType generic function

Tasks

  • Bump go.mod to go 1.26.0
  • Bump GO_VERSION in .github/workflows/ci.yml to 1.26.0
  • Add go fix ./... check step to CI (fail if it produces changes)
  • Run go fix ./... on the codebase and commit the modernized code
  • Verify tests and linter pass with Go 1.26
## Summary Upgrade the project from Go 1.25.0 to Go 1.26.0 and add `go fix ./...` as a CI gate. ## Motivation Go 1.26 ships with a completely revamped `go fix` command that serves as the home for Go's *modernizers*. It provides a push-button way to update codebases to the latest idioms and core library APIs. Adding it to CI ensures the codebase stays modernized automatically. Key Go 1.26 features: - Revamped `go fix` with dozens of modernizers - Green Tea garbage collector (10-40% GC overhead reduction) - `new()` with initial value expressions - Self-referential generic type constraints - ~30% faster cgo calls - New `errors.AsType` generic function ## Tasks - [x] Bump `go.mod` to `go 1.26.0` - [x] Bump `GO_VERSION` in `.github/workflows/ci.yml` to `1.26.0` - [x] Add `go fix ./...` check step to CI (fail if it produces changes) - [x] Run `go fix ./...` on the codebase and commit the modernized code - [x] Verify tests and linter pass with Go 1.26
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
noe.trevino/paso#108
No description provided.