Test::Prereq will get a little less stupid

brian_d_foy on 2005-12-21T21:35:39

Test::Prereq looks at a module distribution and tells me what I left out of PREREQ_PM.

It's an ugly hack where I took a lot of shortcuts and should probably be Exhibit A at my preogrammer status revokation hearing.

Offer Kaye asked me about making it work with CPANPLUS since it presently uses CPAN::Shell. If you don't have CPAN.pm configured, however, things blow up.

After a couple of messages back and forth, Offer says "Why not just read the packages file yourself". I said, "Yeah, if you want to do it the smart way, I guess".

I think I thought of that originally, but I still live in that fantasy land where CPAN.pm works everywhere.

We left off talking about how to get packages.02.tgz. I don't want to always hit the network, and even when I do, I don't want to bang on the same CPAN mirror. Also, once the module fetches the file, it shouldn't fetch it again if it hasn't been updated, but that means storing it somewhere. Modules that make files behind your back are Not The Best, even if it is documented.


CPANPLUS

ChrisDolan on 2005-12-22T14:05:13

I did something similar for the Fink project, where I wanted to determine the prereqs of a module for insertion into a Debian-like dependency system. This is in the Fink CVS, and I can provide a pointer upon request.

If you want to see an example of leveraging CPANPLUS, take a look at my Module::License::Report module. It performs a subset of the work that my Fink tool does, but it's a lot more robust.

  -- Chris