You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are already using Composer Merge Plugin 1.4 (or older) and you are updating the plugin to 2.0 (or newer), it is recommended that you update the plugin first using Composer 1.
38
+
39
+
If you update the incompatible plugin using Composer 2, the plugin will be ignored:
40
+
41
+
> The "wikimedia/composer-merge-plugin" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
42
+
43
+
Consequently, Composer will be unaware of the merged dependencies and will remove them requiring you to run `composer update` again to reinstall merged dependencies.
44
+
34
45
35
46
Usage
36
47
-----
@@ -64,13 +75,13 @@ Usage
64
75
### Updating sub-levels `composer.json` files
65
76
66
77
67
-
In order for composer-merge-plugin to install dependencies from updated or newly created sub-level `composer.json` files in your project you need to run the command:
78
+
In order for Composer Merge Plugin to install dependencies from updated or newly created sub-level `composer.json` files in your project you need to run the command:
68
79
69
80
```
70
-
$ composer update --lock
81
+
$ composer update
71
82
```
72
83
73
-
This will [instruct Composer to recalculate the file hash](https://getcomposer.org/doc/03-cli.md#update) for the top-level `composer.json` thus triggering composer-merge-plugin to look for the sub-level configuration files and update your dependencies.
84
+
This will [instruct Composer to recalculate the file hash](https://getcomposer.org/doc/03-cli.md#update) for the top-level `composer.json` thus triggering Composer Merge Plugin to look for the sub-level configuration files and update your dependencies.
74
85
75
86
76
87
Plugin configuration
@@ -228,6 +239,6 @@ Composer Merge plugin is licensed under the MIT license. See the
0 commit comments