Re: TB2::Mouse will be internal use only... with one hitch.

Michael G Schwern <[email protected]>
Newsgroups gmane.comp.lang.perl.quality-assurance
Message-ID <[email protected]>
On 2011.11.30 4:31 AM, David Golden wrote:
> On Wed, Nov 30, 2011 at 6:13 AM, Michael G Schwern <[email protected]> wrote:
>> Unfortunately, that would be a circular dependency between Mouse and TB2 unless...
> 
> Not a complete dependency, though, as one can function without the
> other.  As long as the CPAN clients are smart enough not to follow the
> prereq chain endlessly, it might work.

*All* CPAN clients.  This includes package builders, DarkPAN tools, and so on.

Circular dependencies are bad juju.  Putting one at the root of the dependency
tree would be asking for disaster.  It risks breaking the whole automated CPAN
bootstrapping and upgrading process.


> And possibly TB2's
> Makefile could be smart and only add the Mouse prereq if it finds a
> version of itself (or, really, of Test::More) sufficient to meet
> Mouse's prereq needs.  (Bundling might still be easier.)

That might work.

It puts information about Mouse into the Test-Simple distribution.
Information which will change.  It means the two distributions must be coupled
even more tightly.  If Mouse changes its Test::More dep, a new version of
Test::More must be cut immediately if not before the Mouse change.  Very time
sensitive.


> Another idea might be for TB2 to use the new "runtime/recomends"
> prereq type in v2 CPAN Meta files.

Same problem as a regular prereq as they are resolved before building and
installation.


-- 
10. Not allowed to purchase anyone's soul on government time.
    -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army
           http://skippyslist.com/list/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.