New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some version strings in %Module::CoreList::delta contain trailing space and cause warning with version->parse #14666
Comments
From perlancar@cpan.orgSome version strings in %Module::CoreList::delta contain trailing space and cause warning with version->parse, e.g. there is one '1.15 ' which when fed to version->parse under warnings: % perl -wE'say version->parse("1.15 ")' Complete list: % perl -MModule::CoreList -E'my $d = \%Module::CoreList::delta; for my $rel (keys %$d) { my $rd = $d->{$rel}; for my $t (keys %$rd) { my $h = $rd->{$t}; for my $mod (keys %$h) { my $v = $h->{$mod}; say "$rel -> $t -> $mod: <$v>" if $v =~ /\s/ } } }' |
From @rjbs* perlancar <perlbug-followup@perl.org> [2015-04-23T02:15:31]
Thanks, I believe I have just fixed all this with b7c1f08. I see that you probably found this while working on Module::CoreList::More, It seems a shame to leave it in an add-on module that many users would never -- |
The RT System itself - Status changed from 'new' to 'open' |
From @perlancarI'd love to get it integrated, but we should probably get at least a couple On Thu, Apr 23, 2015 at 7:24 PM, Ricardo Signes via RT <
|
From @jkeenanOn Thu Apr 23 21:45:43 2015, perlancar@gmail.com wrote:
I've created a project to evaluate Module-CoreList-More at the New York Perl Hackathon, coming up on May 2. https://github.com/nyperlmongers/nyperlhackathon2015/wiki/Evaluate-Module-CoreList-More So perhaps we'll get some eyeballs on this there. Thank you very much. -- |
From @haargOn Wed Apr 22 23:15:30 2015, perlancar@cpan.org wrote:
These versions with spaces are an accurate representation of what the versions were defined as. As an example, in perl 5.006, lib/ExtUtils/MM_Unix.pm, line 11: This leaves a trailing space. |
From @LeontOn Mon, Apr 27, 2015 at 4:27 PM, Graham Knop via RT <
I would consider that an unhelpful artifact. Historically correct as it may Leon |
From spam-bitcard@yary.ack.org
The "version.pm" docs say that the above looks like a CVS revision, and "CVS which leads me to believe that a large number of version strings in Module::CoreList should have a leading "v" on them so they will compare correctly. For example 'Module::Pluggable' is at version '3.8', if it were to go to '3.10' then this would be a problem, whereas 'v3.10' would compare properly against 'v3.8'. On the other hand, when I look at the actual version numbers, the authors seem to be sane about this. That's beyond what I can do in today's Hackathon, but I will have a smaller pull request by the end of the day. It will also handle "CGI::Fast" which has a letter in its version "1.00a", and letters are just plain wrong, according to version.pm. Full comments will be in the pull request. |
From spam-bitcard@yary.ack.orgI've added a pull request to perl-Module-CoreList-More via github Basically, the trailing space could probably be stripped from the core Module::CoreList, but I don't think it's needed. As for Module::CoreList::Core handling these, I submitted a patch to strip the trailing space (and handle other trailing junk which version.pm complains about). Also this patch resumes using "warnings" which might alert us to issues in the future. The patch also adds a test to look for warnings. And I think Module-CoreList-More could be folded into Module-CoreList. I would like to factor out common code from is_core/is_still_core, and list_core_modules/list_still_core_modules, but that's not a big deal. |
From [Unknown Contact. See original ticket]I've added a pull request to perl-Module-CoreList-More via github Basically, the trailing space could probably be stripped from the core Module::CoreList, but I don't think it's needed. As for Module::CoreList::Core handling these, I submitted a patch to strip the trailing space (and handle other trailing junk which version.pm complains about). Also this patch resumes using "warnings" which might alert us to issues in the future. The patch also adds a test to look for warnings. And I think Module-CoreList-More could be folded into Module-CoreList. I would like to factor out common code from is_core/is_still_core, and list_core_modules/list_still_core_modules, but that's not a big deal. |
From @jkeenanOn Thu Apr 23 05:24:18 2015, perl.p5p@rjbs.manxome.org wrote:
rjbs: If we've addressed the problem which the OP reported, then I'd recommend closing this ticket and moving any discussion about a revision to Module-CoreList to a new RT. Thank you very much. -- |
From @rjbsSo resolved. -- |
@rjbs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#124364 (status was 'resolved')
Searchable as RT124364$
The text was updated successfully, but these errors were encountered: