The manager-plugin currently imports repositories from all ZIP artifacts that match type contao-provider. This is or can be problematic if a new version is installed, because the old one might still exist. This PR optimizes:
providers will only be imported if they match the require statement in the root composer.json. Contao Manager 1.2 will set the requirements to an absolute version (the one from the last file upload), so the constraint should only ever match one ZIP file.
Additionally, it will prevent multiple of the same repositories to be added. This can also happen if the same repo/credentials are required for multiple artifacts, e.g. when using Private Packagist.
The manager-plugin currently imports repositories from all ZIP artifacts that match type
contao-provider
. This is or can be problematic if a new version is installed, because the old one might still exist. This PR optimizes:require
statement in the rootcomposer.json
. Contao Manager 1.2 will set the requirements to an absolute version (the one from the last file upload), so the constraint should only ever match one ZIP file.