Skip to content

fix(ci): switch release-please to the simple strategy#34

Merged
GregTheGreek merged 1 commit into
mainfrom
fix/release-please-simple-strategy
Jul 6, 2026
Merged

fix(ci): switch release-please to the simple strategy#34
GregTheGreek merged 1 commit into
mainfrom
fix/release-please-simple-strategy

Conversation

@GregTheGreek

Copy link
Copy Markdown
Owner

Summary

Third release-please failure mode: the rust strategy insists on bumping package.version in the package root's Cargo.toml, and ours is a virtual workspace manifest (is not a package manifest (might be a cargo workspace)). The rust type cannot work with this layout short of per-crate packages + cargo-workspace plugin, which would mean component tags and three changelogs.

Instead: release-type: simple with # x-release-please-version annotations on the three crate version lines and the two rompatch-core dependency requirements, plus the existing package.json jsonpath entry. One release PR, one vX.Y.Z tag, one root CHANGELOG covering all commits; workflow outputs unchanged. The simple strategy cannot update Cargo.lock, so the workflow now runs cargo update --workspace on the release branch and commits the result whenever the PR is (re)created.

Note: the simple strategy also maintains a version.txt at the repo root; it will appear in the first release PR.

Test plan

  • cargo metadata + cargo build --locked pass with the annotations
  • Workflow YAML parses
  • After merge: release-please opens the 0.4.0 release PR with all five version sites bumped and Cargo.lock synced

The rust strategy requires the package root Cargo.toml to contain a
[package] section and fails on our virtual workspace manifest ("is not
a package manifest"). Use release-type simple with x-release-please-
version annotations on the three crate versions and the rompatch-core
dependency requirements, keeping a single release PR, tag, and
changelog. Since the simple strategy cannot update Cargo.lock, the
workflow now runs cargo update --workspace on the release branch and
commits the result.

Co-Authored-By: Claude
@GregTheGreek
GregTheGreek marked this pull request as ready for review July 6, 2026 14:03
@GregTheGreek
GregTheGreek merged commit 6dbfc09 into main Jul 6, 2026
7 checks passed
@GregTheGreek
GregTheGreek deleted the fix/release-please-simple-strategy branch July 6, 2026 14:03
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