On Feb 19, 2008 2:49 AM, Jan Dubois <[EMAIL PROTECTED]> wrote:
> I've been wondering if a Bundle::* distribution on CPAN should list
> all the modules specified in the CONTENTS section of the module
> also in the "requires" section of META.yml. Obviously the CPAN
> shell doesn't require this, as none of the current bundles on
> CPAN seem to be doing this.
Off the top of my head, I think one reason *not* to do this is that
Bundle CONTENTS are processed in order and I don't think that
"requires" are. So Bundles can provide a very specific order if need
be to handle some particular dependency.
Also, CONTENTS can specify specific distributions, including developer
versions:
AUTHORID/Foo-Bar-0.10_01.tar.gz
Whereas "requires" can't do that -- it only specifies a minimum
version. (Er, hrrm, well, OK, technically, M::B supports more
complexity, but I'm not sure how well CPAN.pm resolves those.)
So I think the semantics of the two approaches are different, which is
why people started creating "Task" distributions for when they wanted
something more like "requires" than CONTENTS.
David