Skip to content

Handle pre-releases on all in an and group #267

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

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

mattfarina
Copy link
Member

Up to this point, all versions in an and group needed to have a prerelease to be checked with those correctly. This change enables just one item in an and group to have a pre-release and engage it for all items in that and group.

This does not work across ORs. For example,
>= 1.2.3 < 2.0.0-beta || > 3 will evaluate prereleases in the group between 1.2.3 and 2.0.0-beta but will not look at prereleases when looking at >3.

Closes #259

Up to this point, all versions in an and group needed to have a
prerelease to be checked with those correctly. This change
enables just one item in an and group to have a pre-release
and engage it for all items in that and group.

This does not work across ORs. For example,
`>= 1.2.3 < 2.0.0-beta || > 3` will evaluate prereleases in the
group between 1.2.3 and 2.0.0-beta but will not look at
prereleases when looking at `>3`.

Signed-off-by: Matt Farina <matt.farina@suse.com>
@mattfarina mattfarina merged commit 057c901 into Masterminds:master Jun 26, 2025
13 checks passed
@mattfarina mattfarina deleted the fix-259 branch June 26, 2025 12:52
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.

Range condition with build numbers not working as expected
1 participant