andres-montanez / Magallanes

The PHP Deployment Tool
https://magephp.com
MIT License
694 stars 167 forks source link

Add support for monolog/monolog 3.x.x #460

Open bastien70 opened 2 years ago

bastien70 commented 2 years ago

With Symfony 6.1, we have the following error when installing the library :

andres-montanez/magallanes 5.0.0 requires monolog/monolog ^2.5 -> found monolog/monolog[2.5.0, 2.6.0, 2.7.0, 2.8.0] but the package is fixed to 3.1.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

fritzmg commented 7 months ago

As this is an independent tool you should not add this to the require-dev section of your application. Instead you should use a separate directory for this dependency within your code base - e.g. tools/magallanes/composer.json where you only require this package. This way there cannot be unnecessary conflicts. If you have multiple tools like this you can then use bamarni/composer-bin-plugin to ease the handling of all tools.