Skip to content

Add actions/setup-go go-version upgrade recipe - #239

Merged
timtebeek merged 1 commit into
mainfrom
tim/setup-go-recipe-add
Oct 22, 2026
Merged

timtebeek merged 1 commit into
mainfrom
tim/setup-go-recipe-add

Conversation

@timtebeek

Copy link
Copy Markdown
Member

Adds SetupGoUpgradeGoVersion, which raises actions/setup-go go-version to a target major.minor version, mirroring SetupPythonUpgradePythonVersion. Older concrete versions and ranges that cannot reach the target are raised, while stable, oldstable, expressions, newer or open-ended ranges, and steps using go-version-file are left alone. A strategy.matrix axis feeding go-version gets the target appended unless a value (including stable) already reaches it. The version handling moves out of the setup-python recipe into a shared package-private SetupActionUpgradeVersionVisitor, so both recipes now just configure it, with no change in setup-python behavior.

Extract the setup-python version handling into a shared
SetupActionUpgradeVersionVisitor, and reuse it for actions/setup-go.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Oct 22, 2026
@timtebeek
timtebeek merged commit c946f81 into main Oct 22, 2026
2 checks passed
@timtebeek
timtebeek deleted the tim/setup-go-recipe-add branch October 22, 2026 21:11
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant