Skip to content

docs: clarify release-only constraints vs IncludePrerelease - #304

Open
Solaris-star wants to merge 1 commit into
Masterminds:masterfrom
Solaris-star:docs/275-prerelease-constraint-include
Open

docs: clarify release-only constraints vs IncludePrerelease#304
Solaris-star wants to merge 1 commit into
Masterminds:masterfrom
Solaris-star:docs/275-prerelease-constraint-include

Conversation

@Solaris-star

Copy link
Copy Markdown

Summary

#275 reports that <0.5.0 does not match 0.4.1-4.1. That is intentional for this library's Cargo/npm-style range rules: bare release constraints skip prereleases unless IncludePrerelease is set (or the constraint itself names a prerelease).

Fix

Document the behavior and the opt-in in README.md with a concrete example.

Fixes #275

Bare constraints like <0.5.0 intentionally skip prerelease versions
unless IncludePrerelease is set (or the constraint itself names a
prerelease). Document this with a concrete example for Masterminds#275.

Fixes Masterminds#275
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.

Incorrect evaluation of pre-release version with dot-separated numeric against a <X.Y.Z constraint

1 participant