Hi, On Sunday 28 January 2007 12:15, Eric Wilhelm wrote: > Working on an automated build system for multiple computers on multiple > platforms... > > I realized that 'perl Build.PL' doesn't return a failure exit status > when dependencies are missing. Do CPAN/CPANPLUS not check this? > > I added a 'check' action to my subclass which just calls check_prereq(), > but this means I'm running the prereq scan twice ('perl Build.PL > && ./Build check'). > > Would it be reasonable to add a --strict-dep option or something to make > it die in new()? Alternatively, I could go for something that skips it > in new() or a sub-part like init_checks() to be overridden.
My first reaction was "absolutely" and don't make that an option. But since we just blindly believe the dependency list which may be different from the "real" dependencies. IMO, it is wrong to write a dependency list to start with. It should be extracted. Anyway tougher checks are always good. Cheers, Nadim.