Skip to content

fix(release): bump sqlrite-journal example in bump-version.sh (unblocks 0.11.0)#152

Merged
joaoh82 merged 1 commit into
mainfrom
sqlr-fix-bump-journal
Jun 1, 2026
Merged

fix(release): bump sqlrite-journal example in bump-version.sh (unblocks 0.11.0)#152
joaoh82 merged 1 commit into
mainfrom
sqlr-fix-bump-journal

Conversation

@joaoh82
Copy link
Copy Markdown
Owner

@joaoh82 joaoh82 commented Jun 1, 2026

Problem

Dispatching the Release PR workflow for 0.11.0 failed at the "Refresh Cargo.lock" step (release-pr run 26737256013):

error: failed to select a version for the requirement `sqlrite-engine = "^0.10.1"`
candidate versions found which didn't match: 0.11.0
required by package `sqlrite-journal` (examples/desktop-journal/src-tauri)

Root cause

examples/desktop-journal/src-tauri/Cargo.toml (sqlrite-journal, the SQLR-43 concurrent-writes journal example) is a workspace member that pins the engine via a path+version dep:

sqlrite = { package = "sqlrite-engine", path = "../../..", version = "0.10.1" }

…but it was never added to bump-version.sh's file lists. Every prior release was a patch bump, and ^0.10.1 still matched 0.10.2/0.10.3, so the stale pin resolved fine. 0.11.0 is the first minor bump — it falls outside ^0.10.1, so the whole-workspace lock refresh can't select a version. The existing --exclude sqlrite-journal (eb4662c) only skips building it; cargo still resolves the full workspace graph for the lockfile.

Fix

Add the journal manifest to TOML_FILES — the same full-bump treatment the sibling desktop/src-tauri Tauri app already gets. The existing sweep then rewrites both its package version and its engine dep pin on every bump, so the pin can never lag the engine again (patch or minor).

Verification (local, in a worktree)

  • bash scripts/bump-version.sh 0.11.0 → journal manifest now shows version = "0.11.0" and sqlrite-engine … version = "0.11.0"; the script's own verification loop passes.
  • cargo build --workspace --exclude sqlrite-desktop --exclude sqlrite-journal (the exact CI lock-refresh command) resolves cleanly; Cargo.lock lands sqlrite-engine 0.11.0.
  • This PR ships only the script change — the bump artifacts were reverted; the actual bump is the Release-PR workflow's job once this merges.

After merge

Re-dispatch release-pr.yml with 0.11.0 to open the (now-passing) Release PR.

🤖 Generated with Claude Code

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) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
rust-sqlite Ready Ready Preview, Comment Jun 1, 2026 5:42am

Request Review

@joaoh82 joaoh82 merged commit 21cb2a9 into main Jun 1, 2026
21 checks passed
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