chore: bump Go to 1.26 and apply go fix modernizations#251
Merged
mitchnielsen merged 6 commits intomainfrom Feb 18, 2026
Merged
chore: bump Go to 1.26 and apply go fix modernizations#251mitchnielsen merged 6 commits intomainfrom
mitchnielsen merged 6 commits intomainfrom
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace strings.Index with strings.Contains and strings.Cut, and strings.Split with strings.SplitSeq for iterator-based iteration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace manual for-range map copy loops with maps.Copy. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Go 1.26 allows new() to be used with type parameters, replacing the
need for the k8s.io/utils/ptr.To helper. This also includes the
remaining interface{} to any changes in test files.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
chrisguidry
approved these changes
Feb 17, 2026
Collaborator
chrisguidry
left a comment
There was a problem hiding this comment.
Wonderful! Thank you!
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.
Summary
Bumps Go to 1.26 and applies the automated fixes from
go fix ./...to modernize the codebase:new()builtin instead ofk8s.io/utils/ptr.To()for generic pointer construction (dropsk8s.io/utilsas a direct dependency)interface{}with theanytype aliasmaps.Copyfrom the standard library instead of manual for-range map copyingstrings.Contains,strings.Cut, andstrings.SplitSeqinstead of older string functionsfor range Ninteger range syntaxAll changes were produced by
go fix, just split into separate commits by category.🤖 Generated with Claude Code
Related to https://linear.app/prefect/issue/PLA-2340/apply-go-fix-changes-from-go-126