From 0ab78dde0e1ff702db6c8b667784fa456245b26b Mon Sep 17 00:00:00 2001 From: Lahfir Date: Mon, 23 Feb 2026 00:57:28 -0800 Subject: [PATCH] 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. --- Cargo.toml | 2 +- release-please-config.json | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 70405a7..e9f3ca3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] } diff --git a/release-please-config.json b/release-please-config.json index 5f55a04..3a20553 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -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" },