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

Re: Ending Build.PL if there are missing modules

Thread Previous | Thread Next
From:
Adam Kennedy
Date:
February 5, 2012 07:46
Subject:
Re: Ending Build.PL if there are missing modules
Message ID:
CAAVyNAy1YdvN7Vj3nf+37bD2HvbOdyktMkO8YocODWsfUM4EFQ@mail.gmail.com
That's how Module::Install's requires_from does it too.

I should look at zilla's code and see how it runs, might be worth
aligning M:I and it's detection.

Adam

On Sun, Feb 5, 2012 at 12:31 AM, David Golden <xdaveg@gmail.com> wrote:
> 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