Skip to content

bump Go version to 1.26.2 and update dependencies#4507

Merged
efiacor merged 4 commits intokptdev:mainfrom
Nordix:bump-go-version-1-26-2
Apr 29, 2026
Merged

bump Go version to 1.26.2 and update dependencies#4507
efiacor merged 4 commits intokptdev:mainfrom
Nordix:bump-go-version-1-26-2

Conversation

@aravindtga
Copy link
Copy Markdown
Contributor

Summary

Upgrades to Go 1.26.2 and other dependencies

Version bumps

  • Go: 1.25.9 → 1.26.2
  • k8s.io/*: v0.35.0 → v0.36.0
  • controller-runtime: v0.22.4 → v0.23.3
  • kustomize/{api,kyaml}: v0.21.0 → v0.21.1
  • Various indirect deps refreshed

Code changes

  • errors.Aserrors.AsType[T]
  • new(expression) in pkg/lib/errors/errors.go
  • strings.Splitstrings.SplitSeq in pkg/test/runner/runner.go
  • slice.ContainsStringslices.Contains in pkg/live/load_test.go
  • Fixed non-constant format strings in cmdfndoc.go and cmdeval.go

Testing

  • Manual and CI tests are passing

AI Disclosure

  • This PR description was drafted with the assistance of Kiro CLI, which was also used to analyse dependency usage and identify any missing patterns.

Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 29, 2026

Deploy Preview for kptdocs ready!

Name Link
🔨 Latest commit ef0fab3
🔍 Latest deploy log https://app.netlify.com/projects/kptdocs/deploys/69f24095505fdc000814d343
😎 Deploy Preview https://deploy-preview-4507--kptdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@efiacor efiacor marked this pull request as ready for review April 29, 2026 10:22
@efiacor efiacor requested a review from liamfallon as a code owner April 29, 2026 10:22
Copilot AI review requested due to automatic review settings April 29, 2026 10:22
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Apr 29, 2026
@efiacor efiacor marked this pull request as draft April 29, 2026 10:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Printf calls 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.

Comment thread pkg/lib/errors/errors.go
Comment thread thirdparty/cmdconfig/commands/cmdeval/cmdeval.go Outdated
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
@aravindtga aravindtga marked this pull request as ready for review April 29, 2026 10:52
Copilot AI review requested due to automatic review settings April 29, 2026 10:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

@liamfallon liamfallon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm in pedantic mode today, sorry.

Comment thread pkg/fn/eval_test.go Outdated
Comment thread pkg/fn/multiruntime.go Outdated
Comment thread pkg/lib/errors/errors.go Outdated
Comment thread pkg/live/load_test.go Outdated
Comment thread pkg/test/live/runner.go Outdated
Comment thread pkg/wasm/client.go Outdated
Comment thread thirdparty/cmdconfig/commands/cmdeval/cmdeval.go Outdated
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
@aravindtga
Copy link
Copy Markdown
Contributor Author

I'm in pedantic mode today, sorry.

No problem.

Comment thread commands/fn/doc/cmdfndoc.go Outdated
Comment thread pkg/lib/errors/resolver/container.go Outdated
Comment thread pkg/lib/errors/errors.go Outdated
@dosubot dosubot Bot added the lgtm label Apr 29, 2026
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
Copilot AI review requested due to automatic review settings April 29, 2026 17:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@efiacor efiacor merged commit 2e97d51 into kptdev:main Apr 29, 2026
18 of 19 checks passed
@efiacor efiacor deleted the bump-go-version-1-26-2 branch April 29, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code lgtm size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants