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

New StrictVersion type for VersionSpec ranges. #296

Merged
merged 7 commits into from
Aug 28, 2023

Conversation

tdejager
Copy link
Collaborator

This PR introduces the StrictVersion type, this is a version type for which 1.0 is not equal to 1.0.0. This is required for version ranges as a range from 1.0.* is a subset 1.*. And not the same. We keep the ordering the same as with Version but change Eq and Hash. This type is now used in the MatchSpec and parsing code.

Another change in the PR is the addition of Hash for MatchSpec.

@tdejager tdejager merged commit 743ec3b into main Aug 28, 2023
8 checks passed
@tdejager tdejager deleted the feat/migrate-to-strict-version branch August 28, 2023 15:07
@YeungOnion YeungOnion mentioned this pull request Sep 7, 2023
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