skaji/cpm

Feature request: Dependency graph

Opened this issue · 2 comments

I am requesting a dependency graph feature, so you can actually see what modules depend on what submodules and so on. There are dependency graphs on metacpan (so you can single check each module), but we are using a custom darkpan which doesn't have this feature.

Having this feature built-in into cpm so you can use it with multiple resolvers would be pretty cool. Output could either be ascii art or html.

skaji commented

Sounds interesting.
But, I'm not sure cpm itself should have such feature.

It would be quite useful to cleanup cpanfiles and get rid of modules with a lot of dependencies to decrease build times (especially for modules on custom darkpans etc.). I though about writing it myself but cpm already has a lot of the code which is required to build a dependency graph anyways which is how I came up with the idea.