Decision Break composer install if patches don't apply

accepted

Allowing builds to succeed with failed patches can lead to malformed code or hidden errors.

Decision

When using cweagans/composer-patches 1.x to manage patches, use the following configuration:

  "composer-exit-on-patch-failure": true,

Composer Patches 2.x always stops composer install when a patch fails to apply, and no longer reads composer-exit-on-patch-failure, so it needs no configuration.

Consequences

Errors related to patches will surface earlier in the development process, such as when running automated updates.