Skip to content

Comments

Bump Go to 1.26#1200

Merged
nickvanw merged 3 commits intomainfrom
nick/bump-go-1.26
Feb 24, 2026
Merged

Bump Go to 1.26#1200
nickvanw merged 3 commits intomainfrom
nick/bump-go-1.26

Conversation

@nickvanw
Copy link
Contributor

Summary

Bumps the Go version from 1.25 to 1.26 and fixes lint failures caused by stricter fmt format verb checking in the new version.

Changes

  • Bump go.mod from Go 1.25.5 to 1.26.0
  • Change Format.String() from a pointer receiver to a value receiver so it can be called on Format values directly
  • Replace %q with "%s" in all fmt.Errorf calls that format a printer.Format value — %q on an int-based type formats as a rune literal (not a quoted string), which Go 1.26's vet now correctly flags

Go 1.26 tightened fmt format verb checking. `printer.Format` is a
`type Format int`, and `%q` on an int-based type formats as a rune
literal rather than a quoted string. This was flagged by the stricter
vet checks.

Fix by changing `Format.String()` to a value receiver (so it works on
values returned by `Printer.Format()`) and replacing `%q` with `"%s"`
across all call sites to properly invoke the Stringer interface.
@nickvanw nickvanw requested a review from a team as a code owner February 24, 2026 00:47
@nickvanw nickvanw merged commit b35ff33 into main Feb 24, 2026
2 checks passed
@nickvanw nickvanw deleted the nick/bump-go-1.26 branch February 24, 2026 01:09
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.

3 participants