Skip to content
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

Fix regression with implicit minimum value and multiple requirements #38

Merged
merged 3 commits into from May 24, 2023

Conversation

pghmcfc
Copy link
Contributor

@pghmcfc pghmcfc commented May 19, 2023

The with_string_requirement method stopped processing multiple requirements when it encountered a missing operator (implicit minimum value), thus missing further requirements if they were specified.

This manifested, for example, as test failures for Module::CPANfile:
http://www.cpantesters.org/cpan/report/89100bda-f299-11ed-ba95-ac6e75fda020

Looks like a copy-and-paste issue since the existing tests are
exactly the same as for an explicit minimum value in range.
The with_string_requirement method stopped processing multiple
requirements when it encountered a missing operator (implicit minimum
value), thus missing further requirements if they were specified.

This manifested, for example, as test failures for Module::CPANfile:
http://www.cpantesters.org/cpan/report/89100bda-f299-11ed-ba95-ac6e75fda020
@Leont Leont merged commit 7cf84e6 into Perl-Toolchain-Gang:main May 24, 2023
16 checks passed
@miyagawa
Copy link
Member

This obviously breaks cpanfile and tools depending on it (cpanm, Carton, Carmel). Can you make a new release on CPAN with the fix? Thanks!

@Leont
Copy link
Member

Leont commented Jun 19, 2023

2.143 has just been shipped with a fix

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.

None yet

4 participants