Skip to content

Commit

Permalink
Add note about @anotherjames article
Browse files Browse the repository at this point in the history
  • Loading branch information
cweagans committed Feb 2, 2021
1 parent 4f34144 commit 30707e7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,19 @@ If you want to avoid this behavior, add a specific key to the `extra` section:

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

## Patching composer.json in dependencies

This doesn't work like you'd want. By the time you're running `composer install`,
the metadata from your dependencies' composer.json has already been aggregated by
packagist (or whatever metadata repo you're using). Unfortunately, this means that
you cannot e.g. patch a dependency to be compatible with an earlier version of PHP
or change the framework version that a plugin depends on.

@anotherjames over at @computerminds wrote an article about how to work around
that particular problem for a Drupal 8 -> Drupal 9 upgrade:

[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))

## Difference between this and netresearch/composer-patches-plugin

- This plugin is much more simple to use and maintain
Expand Down

0 comments on commit 30707e7

Please sign in to comment.