
Talking Drupal Talking Drupal #536 - Composer Patches 2.0
Jan 19, 2026
Cameron Eagans, an engineering leader and full-stack software engineer, dives into the world of Composer Patches 2.0. He explains the evolution of patching dependencies, highlighting the transition from Drush Make to Composer. Their conversation covers the benefits of clear workflows and new features like patches.lock.json for better patch management. Cameron also discusses the complexities of user workflows and the importance of community contributions. Plus, he shares insights on balancing convenience with supply-chain risks in dependency-defined patches.
AI Snips
Chapters
Transcript
Episode notes
Declarative, Traceable Dependency Patching
- Composer Patches lets you declaratively apply changes to dependencies so your project runs without upstream changes.
- It replaces ad-hoc patch folders with ordered, documented patch definitions inside composer.json for clarity and traceability.
Originated From An NBC Drupal Port
- Cameron built the first composer-patches proof of concept for an NBC Drupal 8 distribution migration.
- The plugin emerged to replace heavy Drush Make patch reliance during that porting effort.
Scale Exposed Hidden Fragility
- Wide adoption revealed brittle implicit behaviors and rare failure modes that were hard to reproduce.
- 2.0 focuses on explicit workflows, better tests, and clearer guarantees to avoid breaking many users' setups.
