bump Go version to 1.26.2 and update dependencies#4507
Conversation
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
✅ Deploy Preview for kptdocs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR upgrades the repository to Go 1.26.2 and refreshes Kubernetes/controller-runtime (and related) dependencies, along with small refactors to use newer stdlib helpers and to fix non-constant format string usages.
Changes:
- Bump Go version to 1.26.2 (root + healthcheck module) and update dependency versions / sums.
- Refactor error type assertions to use
errors.AsType[T]and update a few stdlib usages (strings.SplitSeq,slices.Contains). - Fix
Printfcalls that previously passed dynamic strings as format strings.
Reviewed changes
Copilot reviewed 18 out of 20 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| thirdparty/cmdconfig/commands/cmdeval/cmdeval.go | Fixes dynamic format string usage in Printf; also updates header. |
| pkg/wasm/client.go | Refactors error matching to errors.AsType. |
| pkg/test/runner/runner.go | Uses strings.SplitSeq in diff normalization. |
| pkg/test/live/runner.go | Uses errors.AsType for exit code extraction. |
| pkg/live/load_test.go | Switches to slices.Contains and adjusts imports accordingly. |
| pkg/lib/errors/resolver/live.go | Refactors a set of error type checks to errors.AsType. |
| pkg/lib/errors/resolver/git.go | Refactors git error matching to errors.AsType. |
| pkg/lib/errors/resolver/container.go | Refactors container image error matching to errors.AsType. |
| pkg/lib/errors/errors.go | Adjusts error wrapping/copying and updates kio unwrap logic to AsType. |
| pkg/fn/runtime/runner.go | Refactors errors.As usage to errors.AsType. |
| pkg/fn/runtime/exec.go | Refactors exit error matching to errors.AsType. |
| pkg/fn/runtime/container.go | Refactors exit error matching to errors.AsType. |
| pkg/fn/multiruntime.go | Refactors NotFound matching to errors.AsType. |
| pkg/fn/eval_test.go | Updates test to use errors.AsType. |
| commands/fn/doc/cmdfndoc.go | Fixes dynamic format string usage in Printf. |
| Makefile | Updates Go toolchain version used by build tooling. |
| go.mod | Bumps Go version and updates direct/indirect deps. |
| go.sum | Updates dependency checksums after version refresh. |
| healthcheck/go.mod | Bumps Go version and module deps for the healthcheck submodule. |
| healthcheck/go.sum | Updates dependency checksums for the healthcheck submodule. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 18 out of 20 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
liamfallon
left a comment
There was a problem hiding this comment.
I'm in pedantic mode today, sorry.
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
No problem. |
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 18 out of 20 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Upgrades to Go 1.26.2 and other dependencies
Version bumps
Code changes
errors.As→errors.AsType[T]new(expression)inpkg/lib/errors/errors.gostrings.Split→strings.SplitSeqinpkg/test/runner/runner.goslice.ContainsString→slices.Containsinpkg/live/load_test.gocmdfndoc.goandcmdeval.goTesting
AI Disclosure