Skip to content

Fix yaml version check - #200

Open
haarg wants to merge 2 commits into
andk:masterfrom
haarg-contrib:fix-yaml-version-check
Open

Fix yaml version check#200
haarg wants to merge 2 commits into
andk:masterfrom
haarg-contrib:fix-yaml-version-check

Conversation

@haarg

@haarg haarg commented Jul 20, 2026

Copy link
Copy Markdown

No description provided.

haarg added 2 commits July 20, 2026 18:20
A v prefix is meaningful in perl versions, so it can be misleading to
add a v. And for modules using a version that includes a v, it would
display starting with two vs.
Checking versions should be done using the ->VERSION method. New
versions of YAML are using three part versions, so checking with a
numeric comparison won't work correctly.
@haarg

haarg commented Jul 20, 2026

Copy link
Copy Markdown
Author

Fixes RT#180176

Comment thread lib/CPAN.pm
$CPAN::Shell::reload->{$file} = $mtime;
my $v = eval "\$$mod\::VERSION";
$v = $v ? " (v$v)" : "";
$v = $v ? " ($v)" : "";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now will this still work as expected if YAML.pm goes back to decimal, which I'm intending to do? This is just informal output, right?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it was wrong regardless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants