kalessil / production-dependencies-guard

MIT License
87 stars 3 forks source link

Show "composer why" among dev-package #12

Closed ScreamingDev closed 5 years ago

ScreamingDev commented 5 years ago

This error is shown:

 [RuntimeException]                                                                    
  Dependencies guard has found violations in require-dependencies (source: lock-file):  
   - symfony/debug: dev-package-name  

But I did not require this package so I need to ask composer why . It would be great if the error message already shows that symfony/console brought this upon us.

Aside: A bit sad that everything gets block due to symfony/console .

kalessil commented 5 years ago

Filed the console-component issue here: https://github.com/symfony/symfony/issues/31379 (in my project I white-listed the component + one more from symfony for now).

Will check if I can extract information from lock-file about which package bringing the dependency.

kalessil commented 5 years ago

Done!