-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Is your feature request related to a problem? Please describe.
When wanting to check the licenses for a project, it is not possible to use composer licenses prior to installing the dependencies with composer install. If you do, the output only lists the license of the root project, not its dependencies. Since the composer.lock file contains the entire resolved dependency graph with license info, this seems like an oversight?
Having to install the dependencies first will add additional resource consumption for the platform that wants to run composer licenses (e.g. a Continuous Integration pipeline), and can apply unnecessary burden on the composer repos, and the network. If caching is set up properly, then that will mitigate this somewhat. But it's still an unnecessary step and will cause wasted resources for any project without proper caching configured.
Describe the solution you'd like
I would like to have the licenses from the full dependency graph output via composer licenses without having to first run composer install.
Describe alternatives you've considered
Nothing other than running composer install first.
Additional context
None