Skip to content

ci: use Go 1.25.x in validate and regen workflows#2924

Merged
oscerd merged 1 commit into
apache:mainfrom
oscerd:ci-fix/go-1.25-workflows
Jul 13, 2026
Merged

ci: use Go 1.25.x in validate and regen workflows#2924
oscerd merged 1 commit into
apache:mainfrom
oscerd:ci-fix/go-1.25-workflows

Conversation

@oscerd

@oscerd oscerd commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

CI Fix

Failed runs:

Errors Found

go: go.mod requires go >= 1.25.0 (running go 1.24.13; GOTOOLCHAIN=local)
go: module ../../crds requires go >= 1.25.0 (running go 1.24.13; GOTOOLCHAIN=local)

The Dependabot bumps of golang.org/x/net 0.40.0 → 0.55.0 raise the go directive to 1.25.0 in each Go module (script/generator already on main via #2909; /crds pending in #2904; /script/validator pending in #2901), but actions/setup-go was pinned to go-version: 1.24.x and v6 sets GOTOOLCHAIN=local, which forbids toolchain auto-upgrade. This currently breaks the Run Generator step of main-push-regen.yaml on every push to main, and the validate job on the pending Dependabot PRs.

Fix Applied

  • Bump go-version: 1.24.x1.25.x in .github/workflows/validate.yaml and .github/workflows/main-push-regen.yaml. Go 1.25 still builds the go 1.24.6 modules, so this is safe to merge ahead of the remaining Dependabot PRs.

Verified locally with a ≥1.25 toolchain and GOTOOLCHAIN=local: the generator module on main builds, and go run . ../../kamelets/ (the exact validate command) passes on PR #2904 content once the validator module is aligned by #2901.

Suggested merge order for the pending Dependabot PRs

  1. This PR
  2. @dependabot rebase chore(deps): bump golang.org/x/net from 0.40.0 to 0.55.0 in /script/validator #2901 (validator) → merge — its diff already carries the go 1.25.0 directive and x/net/x/text bumps the module graph needs
  3. @dependabot rebase chore(deps): bump golang.org/x/net from 0.40.0 to 0.55.0 in /crds #2904 (crds) → merge — its validate only goes green after chore(deps): bump golang.org/x/net from 0.40.0 to 0.55.0 in /script/validator #2901, because the validator's go.mod must record x/net v0.55.0 selected via the local ../../crds replace

Deferred Issues

None — single root cause.

🤖 Generated with Claude Code on behalf of Andrea Cosentino (@oscerd)

golang.org/x/net 0.55.0 bumps require go >= 1.25.0 in the Go modules
(script/generator already on main via apache#2909, crds and script/validator
pending in apache#2904/apache#2901), while setup-go installed 1.24.x with
GOTOOLCHAIN=local, breaking the Run Generator/Run Validator steps.

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
@oscerd oscerd merged commit 803ddf9 into apache:main Jul 13, 2026
5 checks passed
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.

1 participant