Skip to content

feat: use semver to match required version#6066

Merged
ytmimi merged 48 commits intorust-lang:masterfrom
wesleymatosdev:feat/#6063/use-semver-to-check-required-version
Feb 26, 2025
Merged

feat: use semver to match required version#6066
ytmimi merged 48 commits intorust-lang:masterfrom
wesleymatosdev:feat/#6063/use-semver-to-check-required-version

Conversation

@wesleymatosdev
Copy link
Contributor

  • test: add test for required_version
  • chore: install semver
  • refactor: use semver to compare versions
  • fix: use exact version for comparison when no comparator is specified
  • refactor: avoid overhead by considering default behavior from semver
  • test: add complex comparisons for required_version
  • refactor: handle required_version parsing manually

Closes #6063

Copy link
Contributor

@ytmimi ytmimi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this one so soon. I'll be a little busy this coming weekend so I wanted to at least get my initial review done now. Good stuff so far!

@wesleymatosdev
Copy link
Contributor Author

changes addressed @ytmimi. Thanks for the quick feedback 😄

Copy link
Contributor

@ytmimi ytmimi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more notes, but we're moving in the right direction

@wesleymatosdev wesleymatosdev requested a review from ytmimi October 10, 2024 17:55
@wesleymatosdev wesleymatosdev force-pushed the feat/#6063/use-semver-to-check-required-version branch from ea85318 to 4e15dbf Compare October 10, 2024 18:07
@wesleymatosdev wesleymatosdev requested a review from ytmimi October 10, 2024 18:07
Copy link
Contributor

@ytmimi ytmimi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor note about rewording the #### Multiple version to match docs and maybe adding another test case for the wildcard match.

@wesleymatosdev
Copy link
Contributor Author

appreciate the feedback and patience @ytmimi, great rewording on those docs.

lmk if there's anything else 🎉

Copy link
Contributor

@ytmimi ytmimi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just re-reviewed the changes. Thanks again for sticking with this 🎉

@ytmimi ytmimi merged commit 328f453 into rust-lang:master Feb 26, 2025
26 checks passed
@ytmimi ytmimi added release-notes Needs an associated changelog entry and removed pr-follow-up-review-pending labels Feb 26, 2025
@wesleymatosdev wesleymatosdev deleted the feat/#6063/use-semver-to-check-required-version branch February 26, 2025 04:13
@ytmimi ytmimi removed the release-notes Needs an associated changelog entry label Feb 26, 2026
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.

Use semver to check required_version instead of comparing two strings with !=

3 participants