From dff158e457be32127ab8b38b2e5fc0edead0040d Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Wed, 16 Sep 2026 19:24:11 +0300 Subject: [PATCH] fix(release): the workspace crates' exact pins move with the version 91ec5fb bumped the workspace to 0.2.0 but left wallet-entities, wallet-core and wallet-data pinned to each other at =0.1.0, so Cargo.lock no longer resolved. The pins are now =0.2.0, the lockfile follows, and script/stamp-version.sh rewrites the pins from the workspace version so the next bump cannot leave them behind. Gate run with --locked. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_014ftBXYuba8ARhQeF74oUgW --- Cargo.lock | 8 ++++---- Cargo.toml | 6 +++--- script/stamp-version.sh | 3 +++ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bc92e99..efc4f10 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6956,7 +6956,7 @@ dependencies = [ [[package]] name = "wallet-app" -version = "0.1.0" +version = "0.2.0" dependencies = [ "anyhow", "chrono", @@ -6983,7 +6983,7 @@ dependencies = [ [[package]] name = "wallet-core" -version = "0.1.0" +version = "0.2.0" dependencies = [ "async-trait", "blake2", @@ -6999,7 +6999,7 @@ dependencies = [ [[package]] name = "wallet-data" -version = "0.1.0" +version = "0.2.0" dependencies = [ "aes-gcm", "argon2", @@ -7032,7 +7032,7 @@ dependencies = [ [[package]] name = "wallet-entities" -version = "0.1.0" +version = "0.2.0" dependencies = [ "serde", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index 007f4cd..f340c32 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,9 +11,9 @@ authors = ["Rob Thijssen "] repository = "https://git.lair.cafe/blackbeard/wallet" [workspace.dependencies] -wallet-entities = { path = "crates/wallet-entities", version = "=0.1.0" } -wallet-core = { path = "crates/wallet-core", version = "=0.1.0" } -wallet-data = { path = "crates/wallet-data", version = "=0.1.0" } +wallet-entities = { path = "crates/wallet-entities", version = "=0.2.0" } +wallet-core = { path = "crates/wallet-core", version = "=0.2.0" } +wallet-data = { path = "crates/wallet-data", version = "=0.2.0" } anyhow = "1" async-trait = "0.1" diff --git a/script/stamp-version.sh b/script/stamp-version.sh index 049606b..84891be 100755 --- a/script/stamp-version.sh +++ b/script/stamp-version.sh @@ -17,6 +17,9 @@ if [ "${1:-}" != "" ]; then exit 1 fi fi +# The workspace's own crates pin each other exactly; keep the pins on the +# workspace version, or a bump leaves Cargo.lock unresolvable. +sed -i -E "s/^(wallet-[a-z]+ = \{ path = \"crates\/wallet-[a-z]+\", version = \")=[^\"]+(\" \})/\1=${version}\2/" "${here}/Cargo.toml" python3 - "${version}" "${here}/crates/wallet-app/tauri.conf.json" "${here}/ui/package.json" <<'PY' import json, sys version, *files = sys.argv[1:]