{"action":"created","issue":{"url":"https://api.github.com/repos/Perl-Toolchain-Gang/CPAN-Meta-Requirements/issues/26","labels_url":"https://api.github.com/repos/Perl-Toolchain-Gang/CPAN-Meta-Requirements/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/Perl-Toolchain-Gang/CPAN-Meta-Requirements/issues/26/comments","events_url":"https://api.github.com/repos/Perl-Toolchain-Gang/CPAN-Meta-Requirements/issues/26/events","html_url":"https://github.com/Perl-Toolchain-Gang/CPAN-Meta-Requirements/issues/26","id":85600173,"number":26,"title":"Ignore alpha in version comparison","user":{"login":"miyagawa","id":3499,"avatar_url":"https://avatars.githubusercontent.com/u/3499?v=3","gravatar_id":"","url":"https://api.github.com/users/miyagawa","html_url":"https://github.com/miyagawa","followers_url":"https://api.github.com/users/miyagawa/followers","following_url":"https://api.github.com/users/miyagawa/following{/other_user}","gists_url":"https://api.github.com/users/miyagawa/gists{/gist_id}","starred_url":"https://api.github.com/users/miyagawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyagawa/subscriptions","organizations_url":"https://api.github.com/users/miyagawa/orgs","repos_url":"https://api.github.com/users/miyagawa/repos","events_url":"https://api.github.com/users/miyagawa/events{/privacy}","received_events_url":"https://api.github.com/users/miyagawa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-05T18:32:59Z","updated_at":"2015-06-05T19:06:19Z","closed_at":null,"body":"re: https://github.com/miyagawa/cpanminus/issues/463\r\n\r\nCPAN::Meta::Requirements internally uses version.pm for comparing versions, and it tends to have issues with underscore/alpha in versions.\r\n\r\n```\r\nuse CPAN::Meta::Requirements;\r\nwarn CPAN::Meta::Requirements\r\n  ->from_string_hash({ Foo => \"1.23\" })\r\n  ->accepts_module(\"Foo\", \"1.2_3\"); # undef\r\n```\r\n\r\nFixing 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"},"comment":{"url":"https://api.github.com/repos/Perl-Toolchain-Gang/CPAN-Meta-Requirements/issues/comments/109400474","html_url":"https://github.com/Perl-Toolchain-Gang/CPAN-Meta-Requirements/issues/26#issuecomment-109400474","issue_url":"https://api.github.com/repos/Perl-Toolchain-Gang/CPAN-Meta-Requirements/issues/26","id":109400474,"user":{"login":"dagolden","id":27104,"avatar_url":"https://avatars.githubusercontent.com/u/27104?v=3","gravatar_id":"","url":"https://api.github.com/users/dagolden","html_url":"https://github.com/dagolden","followers_url":"https://api.github.com/users/dagolden/followers","following_url":"https://api.github.com/users/dagolden/following{/other_user}","gists_url":"https://api.github.com/users/dagolden/gists{/gist_id}","starred_url":"https://api.github.com/users/dagolden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagolden/subscriptions","organizations_url":"https://api.github.com/users/dagolden/orgs","repos_url":"https://api.github.com/users/dagolden/repos","events_url":"https://api.github.com/users/dagolden/events{/privacy}","received_events_url":"https://api.github.com/users/dagolden/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T19:06:19Z","updated_at":"2015-06-05T19:06:19Z","body":"I'm very reluctant to have CMR pass anything that might fail at runtime.\r\n\r\nE.g. (not tested, but you'll see what I mean)\r\n```\r\npackage Foo;\r\nour $VERSION = version->new(\"v1.2.3_4\");\r\n```\r\n\r\n```\r\nuse Foo v1.2.3.4\r\n````"}}