develooper Front page | perl.module.build | Postings from February 2012

Re: Ending Build.PL if there are missing modules

Thread Previous | Thread Next
From:
David Golden
Date:
February 4, 2012 05:31
Subject:
Re: Ending Build.PL if there are missing modules
Message ID:
CAOeq1c_9CbjuyU4WX_CPpSs4VN0j+0bj0wazNBWirnfeY8Z65Q@mail.gmail.com
On Sat, Feb 4, 2012 at 7:48 AM, Leon Timmermans <fawaka@gmail.com> wrote:
> On Sat, Feb 4, 2012 at 1:32 AM, Adam Kennedy
> <adamkennedybackup@gmail.com> wrote:
>> While I agree it needs to finish, I do kind of wish dependencies could
>> be enforced at the build module level so that tests couldn't run until
>> dependencies are satisfied.
>
> I tend to agree with that. I've been writting Test::CheckDeps
> (warning: very much a 0.001 release) to make it crap out as early as
> possible during testing, but it could be even earlier.

Plenty of code has dependencies listed that aren't truly required and
tests will pass with lower versions.

The proper way to enforce dependencies is in a "use" statement:

  use Foo::Bar 1.23;

Not coincidentally, that's how Dist::Zilla detects dependencies,
ensuring that code and specified prereqs are actually in sync.

In my view, other tools are doing it wrong.

-- David

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About