Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Dist-Zilla-Plugin-CheckPrereqsIndexed CPAN distribution.

Report information
The Basics
Id: 78153
Status: resolved
Priority: 0/
Queue: Dist-Zilla-Plugin-CheckPrereqsIndexed

People
Owner: Nobody in particular
Requestors: cjm [...] cpan.org
Cc: ether [...] cpan.org
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.007
Fixed in: (no value)



Subject: Depending on a non-upgradable module should cause an error
Reading RT#78151 (where a prereq on "feature" caused problems) made me think of suggesting CheckPrereqsIndexed. But it turns out that wouldn't actually have fixed the problem, because "feature" is an indexed module. If cpanidx returns "dist_name: perl" for a module, I think CheckPrereqsIndexed should complain about that. Although maybe it should only complain if the "perl" prereq did not ship with the specified version of the module. (e.g. if you have a prereq "less 0.03" it should complain only if your "perl" prereq is not at least 5.11.4).
On Mon Jul 02 11:41:44 2012, CJM wrote: Show quoted text
> Reading RT#78151 (where a prereq on "feature" caused problems) made me > think of suggesting CheckPrereqsIndexed. But it turns out that wouldn't > actually have fixed the problem, because "feature" is an indexed module. > > If cpanidx returns "dist_name: perl" for a module, I think > CheckPrereqsIndexed should complain about that. Although maybe it > should only complain if the "perl" prereq did not ship with the > specified version of the module. (e.g. if you have a prereq "less 0.03" > it should complain only if your "perl" prereq is not at least 5.11.4).
I think Module::CoreList should be able to handle this -- it should indicate that 'feature' not only was added in 5.9.3, it is not available on cpan as a dual-lifed module (i.e. is *only* available in core). Checking dist_name for a module wouldn't be sufficient, as some things have their 'upstream' listed as blead, not cpan, so I'd expect those to return the wrong data for this purpose.