Skip to content

Fix for normalization of ">= 0" in CPAN::Meta::Requirements 2.144#146

Open
pghmcfc wants to merge 1 commit intoPerl-Toolchain-Gang:masterfrom
pghmcfc:gh_145
Open

Fix for normalization of ">= 0" in CPAN::Meta::Requirements 2.144#146
pghmcfc wants to merge 1 commit intoPerl-Toolchain-Gang:masterfrom
pghmcfc:gh_145

Conversation

@pghmcfc
Copy link
Copy Markdown

@pghmcfc pghmcfc commented Feb 8, 2026

This addresses #145.

Rather than test for specific version numbers of CMR, this fix tests the behavior of CMR and sets up the expected result accordingly. The CMR documentation does say not to do string comparisons on the result of the requirements_for_module method but the test suite is doing that already, albeit indirectly.

This addresses Perl-Toolchain-Gang#145.

Rather than test for specific version numbers of CMR, this fix tests
the behavior of CMR and sets up the expected result accordingly. The
CMR documentation does say not to do string comparisons on the result
of the requirements_for_module method but the test suite is doing that
already, albeit indirectly.
@haarg
Copy link
Copy Markdown
Member

haarg commented Feb 8, 2026

Doing this kind of check and trying to work with both returns seems overly complex, and also not what this test is trying to verify.

The test is trying to check the merge behavior. We don't need to specifically check the handling of version 0 to check that. Just bumping the versions used will make the test work with both new and old CPAN::Meta::Requirements, and I believe still cover what the tests is intended to check.

I've prepared #147 as an alternative fix which does that.

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.

2 participants