GeezerVison is showing github.com — CI: simplify release version bumps by shykes · Pull Request #13062 · dagger/dagger
Conversation
shykes
commented
Apr 30, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
Release version bumps now work by running dagger generate. Set the target version once in dagger.json, run generate, and every version-dependent file in the repo gets updated. No more dedicated bump API, no more .changes/.next bookkeeping.
This removes ~20k lines of code, deletes the all-sdks orchestrator module, and eliminates Bump() methods from 9 toolchains.
How it works
The release module now has individual @generate functions — one per component (Go, Python, TypeScript, PHP, Elixir, Rust, Java, Helm, docs). Each reads targetVersion from a dagger.json customization and rewrites the appropriate version file.
What was removed
toolchains/all-sdks/ — the orchestrator that aggregated per-SDK Bump() calls
toolchains/release/bump.go — the old Release.Bump() entry point
Bump() methods from every SDK toolchain (Go, Python, TypeScript, PHP, Elixir, Rust, Java, .NET, docs)
.changes/.next as version source of truth
Release process change
Before:
dagger call release bump --engine-version="$ENGINE_VERSION"
After:
# set targetVersion in dagger.json, then:
dagger generate
Verification
dagger --progress=plain generate -l
dagger --progress=plain call -m version next-patch-version
dagger --progress=plain call -m version version
go test . in version, toolchains/cli-dev, toolchains/engine-dev, and toolchains/release
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
shykes
changed the title
Refactor release version generation
release: centralize version-file generation into @generate functions
May 1, 2026
shykes
changed the title
release: centralize version-file generation into @generate functions
CI: simplify release version bumps
May 1, 2026
Move docs, Helm, and SDK version generation out of docs-dev/all-sdks and into release. Rust and Java keep their cargo/Maven update steps; releaseSource scopes inputs for each changeset.
Signed-off-by: Solomon Hykes <[email protected]>
Make targetVersion required Release state, validate semver in New, wire generated marshal/invoke code, and set the root dagger.json default. Bump reads r.TargetVersion instead of an engineVersion argument.
Signed-off-by: Solomon Hykes <[email protected]>
Replace aggregate Bump with separate +generate functions for docs, Helm, and each SDK. Regenerate bindings and update release prep docs to run dagger generate.
Signed-off-by: Solomon Hykes <[email protected]>
Delete old docs-dev/SDK bump entrypoints, the all-sdks aggregator, generated bindings, and the accidental root Elixir version file. Release is now the only version bump path.
Signed-off-by: Solomon Hykes <[email protected]>
Update RELEASING.md for explicit ENGINE_VERSION, release.targetVersion, and dagger generate. Remove stale .changes/.next steps from the prep flow.
Signed-off-by: Solomon Hykes <[email protected]>
Add a TODO by the Changie helpers to generate per-component SDK release notes from release.
Signed-off-by: Solomon Hykes <[email protected]>
Inline single-use generator constants, keep reused Rust/Java constants local to their functions, and fold in the lint fix: MustCompile for the Rust version regexp plus gofmt.
Signed-off-by: Solomon Hykes <[email protected]>
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This PR was closed because it has been stalled for 7 days with no activity.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Note: this is badly stale, but I will reopen a new PR that replaces this one on top of #13313
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|