patching-dependencies

Patch workspace dependencies to local checkouts for multi-repo testing.

3|2|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/Moonsong-Labs/knowledge-work-plugins --skill patching-dependencies-moonsong-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: patching-dependencies
Source: https://github.com/Moonsong-Labs/knowledge-work-plugins/tree/main/moonbeam-engineering/skills/patching-dependencies
Command: npx skills add https://github.com/Moonsong-Labs/knowledge-work-plugins --skill patching-dependencies-moonsong-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Patches workspace dependencies across multiple repositories to point to local checkouts or alternate branches, enabling coordinated development and testing without pushing changes upstream.

Core Features & Use Cases

  • Patch dependencies to local checkouts for polkadot-sdk, frontier, moonkit to test multi-repo changes.
  • Update dependencies to a specific branch, tag, or commit across the workspace.
  • Revert patches and restore original dependency references to resume standard CI/build flows.

Quick Start

Run diener patch to redirect polkadot-sdk and related crates to your local checkouts, then cargo build to verify the changes.

Frequently Asked Questions about patching-dependencies

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I patch Cargo workspace dependencies to local checkouts for multi-repo testing?

You can patch Cargo workspace dependencies to local checkouts by using Diener to modify Cargo.toml, redirecting crates from multiple repositories to your local file paths for coordinated multi-repo testing.

What is the best way to test cross-repo feature development across polkadot-sdk and frontier?

Testing cross-repo feature development across polkadot-sdk and frontier is done by patching workspace dependencies to local checkouts or alternate branches, allowing you to verify changes across repositories without pushing upstream.

Do I need Diener to patch Moonbeam-related crates for local development?

Yes, Diener is required to patch Moonbeam-related crates across polkadot-sdk, frontier, and moonkit, as it handles the Cargo.toml modifications needed to redirect dependencies to your local checkouts.

How do I revert patched dependencies and restore original references in my workspace?

To revert patched dependencies and restore original references, you use the patching tool's revert functionality, which removes local checkout redirects and resumes standard CI and build flows.

Why does my cargo build fail after patching dependencies to a local branch?

After patching dependencies to a local branch, a cargo build may fail if dependency versions are misaligned; running cargo update after patching Cargo.toml helps synchronize and verify the changes.

Can I update workspace dependencies to a specific branch or commit across multiple repositories?

Yes, you can update workspace dependencies to a specific branch, tag, or commit across multiple repositories by patching them to point to alternate references, enabling coordinated testing without upstream pushes.