File tree 1 file changed +13
-0
lines changed 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,19 @@ If you want to avoid this behavior, add a specific key to the `extra` section:
180
180
181
181
Or provide an environment variable ` COMPOSER_PATCHES_SKIP_REPORTING ` with a config.
182
182
183
+ ## Patching composer.json in dependencies
184
+
185
+ This doesn't work like you'd want. By the time you're running ` composer install ` ,
186
+ the metadata from your dependencies' composer.json has already been aggregated by
187
+ packagist (or whatever metadata repo you're using). Unfortunately, this means that
188
+ you cannot e.g. patch a dependency to be compatible with an earlier version of PHP
189
+ or change the framework version that a plugin depends on.
190
+
191
+ @anotherjames over at @computerminds wrote an article about how to work around
192
+ that particular problem for a Drupal 8 -> Drupal 9 upgrade:
193
+
194
+ [ Apply Drupal 9 compatibility patches with Composer] ( https://www.computerminds.co.uk/articles/apply-drupal-9-compatibility-patches-composer ) ([ archive] ( https://web.archive.org/web/20210124171010/https://www.computerminds.co.uk/articles/apply-drupal-9-compatibility-patches-composer ) )
195
+
183
196
## Difference between this and netresearch/composer-patches-plugin
184
197
185
198
- This plugin is much more simple to use and maintain
You can’t perform that action at this time.
0 commit comments