Skip Menu |

This queue is for tickets about the WWW-PivotalTracker CPAN distribution.

Report information
The Basics
Id: 68975
Status: new
Priority: 0/
Queue: WWW-PivotalTracker

People
Owner: Nobody in particular
Requestors: granny-cpan [...] ofb.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.00
Fixed in: (no value)



Subject: CPAN installs 0.17 instead of 1.0 --> META.yml provides is incorrect.
From: granny-cpan [...] ofb.net
By including anything in the "provides" section, you disable parsing by PAUSE/CPAN and it trusts exactly what is listed. Version 0.17 didn't have a provides line and didn't have WWW::PivotalTracker::Command. When you added auto_provides_class it populated a portion of provides. auto_provides_class defaults to the keywords of qw( class role ). Cool, I've learned something new tonight. This is my first poking into a Module::Build class, I went straight from ExtUtils to Dist::Zilla. --spazm http://module-build.sourceforge.net/META-spec-v1.4.html#provides provides Example: provides: Foo::Bar: file: lib/Foo/Bar.pm version: 0.27_02 Foo::Bar::Blah: file: lib/Foo/Bar/Blah.pm Foo::Bar::Baz: file: lib/Foo/Bar/Baz.pm version: 0.3 (Spec 1.1) [optional] {map} A YAML mapping that describes all packages provided by this distribution. This information can be (and, in some cases, is) used by distribution and automation mechanisms like PAUSE, CPAN, and search.cpan.org to build indexes saying in which distribution various packages can be found. When using tools like Module::Build that can generate the provides mapping for your distribution automatically, make sure you examine what it generates to make sure it makes sense - indexers will usually trust the provides field if it's present, rather than scanning through the distribution files themselves to figure out packages and versions. This is a good thing, because it means you can use the provides field to tell the indexers precisely what you want indexed about your distribution, rather than relying on them to essentially guess what you want indexed.