Skip to content

chore(scripts): use go.mod go version for generation - #4295

Merged
google-oss-prow[bot] merged 1 commit into
kubeflow:masterfrom
robert-bell:pin-generate-go-version
Oct 22, 2026
Merged

google-oss-prow[bot] merged 1 commit into
kubeflow:masterfrom
robert-bell:pin-generate-go-version

Conversation

@robert-bell

Copy link
Copy Markdown
Member

What this PR does / why we need it:

This change sets GOTOOLCHAIN for make generate and its prerequisites to the version from the go directive in go.mod, matching CI’s Go version selection. This ensures that make generate uses the same go version as what's being used in CI.

While working on an older branch, I found that make generate ran locally with Go 1.27 due to the recent upgrade, but CI continued to use Go 1.26 producing different generated output causing CI to fail.

Which issue(s) this PR fixes (optional, in Fixes #<issue number>, #<issue number>, ... format, will close the issue(s) when PR gets merged):
Fixes #4294

Checklist:

  • Docs included if any changes are user facing

Signed-off-by: Rob Bell <robell@redhat.com>
@robert-bell

Copy link
Copy Markdown
Member Author

/cc @andreyvelich

Just a small QOL fix. I don't think there's any need to backport this but it'll be useful for the next go upgrade.

@andreyvelich andreyvelich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @robert-bell!
/lgtm
/approve

@google-oss-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andreyvelich

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow
google-oss-prow Bot merged commit 060f4d1 into kubeflow:master Oct 22, 2026
29 of 30 checks passed
@google-oss-prow google-oss-prow Bot added this to the v2.4 milestone Oct 22, 2026
@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in Kubeflow Trainer Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

make generate can use a different Go version than CI

2 participants