From 3e50ee53ea0d572aa7ec069199dccacf771d13a6 Mon Sep 17 00:00:00 2001 From: Machu Pikacchu Date: Fri, 23 May 2025 13:01:02 +0000 Subject: [PATCH] Adds just recipe for modifying cdk commit hash --- justfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/justfile b/justfile index 464cc64e7..f46cf9f47 100644 --- a/justfile +++ b/justfile @@ -18,6 +18,15 @@ restore-deps: mv "$bakfile" "$origfile"; \ done +# update cdk commit hash in all Cargo.toml files +update-cdk OLD_REV NEW_REV: + @echo "Updating CDK revision from {{OLD_REV}} to {{NEW_REV}}..." + @find . -name "Cargo.toml" | xargs grep -l "cdk.*git.*vnprc.*rev.*{{OLD_REV}}" | while IFS= read -r file; do \ + echo "✅ Updating $file"; \ + sed -i 's|rev = "{{OLD_REV}}"|rev = "{{NEW_REV}}"|g' "$file"; \ + done + @echo "Done! CDK updated from {{OLD_REV}} to {{NEW_REV}}" + # update bitcoind.nix with latest rev & hash update-bitcoind: @echo "Fetching latest commit hash for sv2 branch..."