cpm icon indicating copy to clipboard operation
cpm copied to clipboard

Feature request: Dependency graph

Open Shawak opened this issue 5 years ago • 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.

Shawak avatar Sep 17 '20 11:09 Shawak

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

skaji avatar Sep 17 '20 11:09 skaji

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.

Shawak avatar Sep 17 '20 11:09 Shawak