Closed miyagawa closed 9 years ago
I'm very reluctant to have CMR pass anything that might fail at runtime.
E.g. (not tested, but you'll see what I mean)
package Foo;
our $VERSION = version->new("v1.2.3_4");
use Foo v1.2.3.4
Yeah I was about to point that "this shouldn't be an error if you weren't using version" - and got the result as you suggest. So that's fair enough.
re: https://github.com/miyagawa/cpanminus/issues/463
CPAN::Meta::Requirements internally uses version.pm for comparing versions, and it tends to have issues with underscore/alpha in versions.
Fixing it in core/version.pm is another issue, but maybe we can relax CMR to normalize the version before comparing it in version.pm. Note that version.pm's normalize function might have issues by itself, such as: https://rt.cpan.org/Public/Bug/Display.html?id=98744