fix: use simple release strategy for workspace version bumps

cargo-workspace plugin cannot parse version.workspace = true in member
crates. Switch to simple strategy with generic file updater using
x-release-please-version annotation in root Cargo.toml.
This commit is contained in:
Lahfir 2026-02-23 00:57:28 -08:00
parent 18fc50cca5
commit 0ab78dde0e
2 changed files with 11 additions and 6 deletions

View file

@ -6,7 +6,7 @@ resolver = "2"
edition = "2021"
rust-version = "1.78"
license = "Apache-2.0"
version = "0.1.0"
version = "0.1.0" # x-release-please-version
[workspace.dependencies]
clap = { version = "4.5", features = ["derive"] }

View file

@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "rust",
"release-type": "simple",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"packages": {
@ -8,13 +8,18 @@
"package-name": "agent-desktop",
"changelog-path": "CHANGELOG.md",
"extra-files": [
"npm/package.json"
{
"type": "generic",
"path": "Cargo.toml"
},
{
"type": "json",
"path": "npm/package.json",
"jsonpath": "$.version"
}
]
}
},
"plugins": [
"cargo-workspace"
],
"changelog-sections": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },