Eric Wilhelm wrote:
[...]
However, it is somewhat inconvenient to need to $dist->regen from the toplevel directory. Is it reasonable for $dist to have a cd_in() cd_out() methods (allowing it to know its current state) and be able to regen() from anywhere?

Yes, being able to regenerate from anywhere would definitely be useful. I don't know why I didn't code it that way; it certainly makes sense.

Also, $dist->make_file($filepath, $content) as a "create this right now" method would be convenient.

That would be a useful option. If I were doing it, I'd probably add a flag to the existing add/change/remove methods to indicate the action should be performed immediately, and/or possibly an option to the constructor to make all methods auto_regen. Whichever method you find most convenient.

Since I've been looking at testing Module::ScanDeps lately, I wonder if it wouldn't be useful to make this be Test::DistGen and install it with the rest of Module::Build?

You could release it as a module and just bundle it with M::B in the t/lib directory. I don't think it necessary to install it with M::B since it's not useful to most users.

Randy.
  • DistGen Eric Wilhelm
    • Re: DistGen Randy W. Sims

Reply via email to