Closed convenient closed 6 months ago
@convenient We cannot support this anymore because of the wide range of dependencies of different Magento versions.
That's why the n98/magerun2-dist
package was introduced which delivers the phar file without any package dependencies.
See also this blog post: https://magerun.net/released-n98-magerun2-v3-1-0-with-brand-new-webapi-commands/
@cmuench Ahh amazing thanks. I hadn't spotted it as this was the first time I'd seen composer require n98/magerun2:"*"
fail since 2.3.7ish :) Now I know, thanks.
Describe the bug
It is not possible to require magerun as a dev dependency on 2.4.7
Expected behaviour
On an instance of 2.4.7 this command works
Steps to reproduce the issue
Here's a bash script
Here's the output
This is because 2.4.7 requires
symfony/finder
like sohttps://github.com/magento/magento2/blob/fcebd3a4ad2a6863af2e2092f5e548cbd81cb0f8/composer.json#L133
But magerun does like so
https://github.com/netz98/n98-magerun2/blob/94ac79064b1ee4aabef57ceeb3726285d0bb3850/composer.json#L45