Skip to content

Fix caret constraint parsing#171

Merged
sdispater merged 1 commit into
masterfrom
fix-caret-constraints
Apr 30, 2021
Merged

Fix caret constraint parsing#171
sdispater merged 1 commit into
masterfrom
fix-caret-constraints

Conversation

@sdispater
Copy link
Copy Markdown
Member

This PR fixes how caret constraints are parsed when the lower bound is a prerelease.

Basically, a constraint like ^1.0.0a3 was converted to >=1.0.0a3,<1.0.0 which cannot be satisfied.

The issue was coming from the Version.next_breaking() method which did not take the stable release as a starting point.

  • Added tests for changed code.
  • Updated documentation for changed code.

@sdispater sdispater requested a review from a team April 29, 2021 08:21
@sdispater sdispater merged commit 5349ab2 into master Apr 30, 2021
@sdispater sdispater deleted the fix-caret-constraints branch April 30, 2021 09:09
@sdispater sdispater mentioned this pull request Apr 30, 2021
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.

1 participant