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

Break choose_version into three methods #4543

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

konstin
Copy link
Member

@konstin konstin commented Jun 26, 2024

ResolverState::choose_version had become huge, with an odd match due to the url handling from #4435. This refactoring breaks it into choose_version, choose_version_registry and choose_version_url. No functional changes.

`ResolverState::choose_version` had become huge, with an odd match due to the url handling from #4435. This refactoring breaks it into `choose_version`, `choose_version_registry` and `choose_version_url`. No functional changes.
@konstin konstin added the internal A refactor or improvement that is not user-facing label Jun 26, 2024

let dist = PubGrubDistribution::from_url(name, url);
Copy link
Member Author

Choose a reason for hiding this comment

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

It's the same code just dedented, see https://app.semanticdiff.com/gh/astral-sh/uv/pull/4543/changes for a better diff

@konstin konstin merged commit b677a06 into main Jun 26, 2024
47 checks passed
@konstin konstin deleted the konsti/choose-version-refactoring branch June 26, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal A refactor or improvement that is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants