thaljef / Pinto

Curate your own repository of Perl modules
https://metacpan.org/module/Pinto::Manual
66 stars 49 forks source link

Better information about what is generating a dependency #57

Open schwern opened 11 years ago

schwern commented 11 years ago

I ran into a situation updating PPI from 1.213 to 1.215 where something in its dependency stack was trying to update MakeMaker and Test::More (they were pinned) but it was unclear where that dependency was coming from.

The normal error message doesn't say where a dependency comes from, it would be very helpful if it did.

Neither -v -v helped nor PINTO_DEBUG because there's no logging which says where a dependency is coming from. I put a message in Pinto::Schema::Result::Prerequisite->as_spec and that finally told me what I needed to know. Something like this would be helpful.

$self->info("$dist_name depends on $pkg_name / $pkg_version");
fesail commented 11 years ago

,jb ,j

melezhik commented 11 years ago

Yes, it'd helpful for me too.

holybit commented 11 years ago

+1 had the same problem the last few days. It would be great to see text dependency tree like you get with cpanm --scandeps