DecisionConfigure Composer Patches to Use `-p2` as `patchLevel` for Drupal core


Drupal's git repository has a different directory structure than projects built on Drupal. Default Composer Patches settings can cause Drupal patches to be silently misapplied.

Table Of Contents


When using cweagans/composer-patches, the following configuration will be used:

  "patchLevel": {
    "drupal/core": "-p2"


Errors due to misapplied patches will be reduced.

Andrew Berry, Cathy Theys, David Burns, James Sansbury, Marcos Cano, Mateu Aguiló Bosch

Decided on