From 6cb39bc454c4a45c96b85dc669281d40c60d3917 Mon Sep 17 00:00:00 2001 From: Joao Henrique Machado Silva Date: Mon, 1 Jun 2026 07:41:42 +0200 Subject: [PATCH] fix(release): bump sqlrite-journal example in bump-version.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `sqlrite-journal` desktop example (examples/desktop-journal/src-tauri) is a workspace member that pins `sqlrite-engine` via a path+version dep, but it was never added to bump-version.sh's file lists. Patch releases survived because its `^0.10.1` pin still matched `0.10.x`, but the first minor bump (0.11.0) falls outside `^0.10.1`, so the Release-PR workflow's workspace lock refresh failed: error: failed to select a version for the requirement `sqlrite-engine = "^0.10.1"` … required by package `sqlrite-journal` (release-pr run 26737256013, dispatching v0.11.0.) Add it to TOML_FILES so both its package version and its engine dep pin track every bump — the same full-bump treatment desktop/src-tauri already gets. Verified locally: `bump-version.sh 0.11.0` now rewrites the journal manifest and `cargo build --workspace --exclude sqlrite-desktop --exclude sqlrite-journal` (the exact CI lock-refresh step) resolves cleanly. Co-Authored-By: Claude Opus 4.8 (1M context) --- scripts/bump-version.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index 9bb2994..407694d 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -6,8 +6,8 @@ # scripts/bump-version.sh 0.2.0 # # Rewrites the version field in every manifest that carries one -# (nine Cargo.toml / pyproject.toml files, plus four JSON manifests -# — thirteen files total). Also rewrites the engine npm dep pin in +# (ten Cargo.toml / pyproject.toml files, plus four JSON manifests +# — fourteen files total). Also rewrites the engine npm dep pin in # `examples/nodejs-notes/package.json` so the published example # resolves the matching engine. Then you run `cargo build` yourself # to refresh Cargo.lock. Idempotent: running twice with the same version @@ -77,6 +77,16 @@ TOML_FILES=( "sdk/nodejs/Cargo.toml" "sdk/wasm/Cargo.toml" "desktop/src-tauri/Cargo.toml" + # `sqlrite-journal` is the second Tauri desktop app (the + # concurrent-writes journal example, SQLR-43). It's a workspace + # member that pins `sqlrite-engine` via a path+version dep, so — + # exactly like `desktop/src-tauri` — both its package version and + # that dep pin have to track the bump. Omitting it survived patch + # releases (a `^0.10.1` pin still matched `0.10.x`) but broke the + # first MINOR bump: `0.11.0` falls outside `^0.10.1`, so the + # workspace lock refresh failed to select a version (release-pr run + # 26737256013). Keep it here so the dep pin never lags the engine. + "examples/desktop-journal/src-tauri/Cargo.toml" ) # Files that pin `sqlrite-engine` (or any other workspace member) but