Repository navigation
feat: upgrade to Go 1.26 and modernize with go fix - #95
Merged
Merged
Conversation
bxcodec
marked this pull request as draft
July 13, 2026 06:22
bxcodec
marked this pull request as ready for review
July 13, 2026 06:46
Member
|
Should we change |
geshtng
reviewed
Jul 13, 2026
geshtng
approved these changes
Jul 19, 2026
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.
Upgrades the module to Go 1.26 and runs the modernization fixers that ship with it, plus the tooling and CI changes needed to keep the matrix honest.
Go version
go.modmoves from1.24.0to1.26.0, and the now-redundanttoolchainline is gone. The directive stays at minor level (1.26.0, not a specific patch) on purpose: patch releases add no language features, so pinning1.26.5would force every consumer and CI runner onto that exact build for nothing. Any1.26.xsatisfies the floor.Modernization (
go fix)Mechanical rewrites applied across the codebase, behavior unchanged:
interface{}becomesanyreflect.Ptrbecomesreflect.Pointerfor i := range nslices.ContainsTooling and lint
2.1.6to2.12.2intools.Makefile. The old build can't load a Go 1.26 module, so lint failed before it ran a single check.goconstexclusion forlorem.goin.golangci.yaml. The strings it flags ("et", "qui", "aut"...) are Latin words in the lorem-ipsum word list, not magic constants worth extracting.CI
Two changes to
.github/workflows/go.yml, both about making the version matrix mean what it says:GOTOOLCHAIN: localat the workflow level. Without it, Go's defaultautomode silently downloads whatever versiongo.modrequires and ignores the versionsetup-goinstalled, so every matrix leg secretly runs the same toolchain.localmakes each leg run exactly what it installed, and fail loudly if that's below the floor instead of hiding the mismatch.~1.26. Every entry has to be at or above thego.modfloor now, otherwise it stops at the toolchain gate before compiling.Verification
go build ./...: cleango vet ./...: cleango test ./...: 274 tests pass across 5 packages