composer-patches icon indicating copy to clipboard operation
composer-patches copied to clipboard

patches-dev?

Open weitzman opened this issue 5 years ago • 4 comments

Like require-dev and autoload-dev, can there be a patches-dev?

weitzman avatar Oct 15 '18 23:10 weitzman

Sounds good to me. This is a lot more straightforward in the master branch (eventual 2.0.0 release) -- https://github.com/cweagans/composer-patches/tree/master/src/Resolvers is where that would need to happen.

cweagans avatar Oct 15 '18 23:10 cweagans

👍

waynetheisinger avatar May 06 '19 11:05 waynetheisinger

I'd love to see this also. My use case is Drupal core where I want to patch in theme suggestions for views, but would not want or need that in production.

mikeohara-blz avatar May 10 '19 00:05 mikeohara-blz

Would like to see this.

I've patched a PHPUnit extension package. I don't need PHPunit install on the PROD server so the abibilty to patch-dev would be really useful.

tyler36 avatar Nov 12 '21 09:11 tyler36

I've made a note to consider this for 2.x. I'm not 100% sold on this though -- it might be better to just unconditionally define the patches, and then if e.g. drush is installed, it'll be patched. If not, it won't be patched.

cweagans avatar Feb 07 '23 21:02 cweagans