Skip to content

Commit 30707e7

Browse files
committed
Add note about @anotherjames article
1 parent 4f34144 commit 30707e7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,19 @@ If you want to avoid this behavior, add a specific key to the `extra` section:
180180

181181
Or provide an environment variable `COMPOSER_PATCHES_SKIP_REPORTING` with a config.
182182

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+
183196
## Difference between this and netresearch/composer-patches-plugin
184197

185198
- This plugin is much more simple to use and maintain

0 commit comments

Comments
 (0)