Is the composer merge plugin needed/necessary? #168
-
Hi all, I was just wondering what the purpose of the composer merge plugin is for Let's say you install a plugin using composer and that plugin has its own set of composer dependencies, wouldn't those already be included by the nature of being included via the root composer.json file rendering the composer merge plugin kind of useless/unnecessary? Just trying to figure out if it is even necessary or if I could even just remove it since it can cause issues when trying to update plugins sometimes to newer versions and conflicts arise as a result. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@ericp-mrel It will be needed for people creating custom plugins and implementing their own composer.json file in the plugin during development, since the vendor files won't be available until they run If there's conflicts arising, that would probably indicate a problem with the dependencies of the plugin, and we'd likely hit the same conflict when trying to package the vendor files for the plugin to deliver through the marketplace. Do you have any examples of where these conflicts are arising? |
Beta Was this translation helpful? Give feedback.
-
The main use case is when you're developing a plugin with dependencies for the project but the plugin does not exist in a separate repository. This is especially helpful when building project-specific plugins that have dependencies that need to be managed, but don't justify having their own repository and release process because they're only ever going to be used in the one project. By all means if it serves no purpose for your specific workflow, feel free to remove it entirely, but it does still provide value to other people. |
Beta Was this translation helpful? Give feedback.
The main use case is when you're developing a plugin with dependencies for the project but the plugin does not exist in a separate repository. This is especially helpful when building project-specific plugins that have dependencies that need to be managed, but don't justify having their own repository and release process because they're only ever going to be used in the one project.
By all means if it serves no purpose for your specific workflow, feel free to remove it entirely, but it does still provide value to other people.