Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down
Loading