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

Move adding dependencies for versions into dedicated method #4410

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

konstin
Copy link
Member

@konstin konstin commented Jun 19, 2024

To support diverging urls, we have to check urls when adding dependencies (after forking). To prepare for this, i've moved adding dependencies for the current version to SolveState::add_package_version_dependencies and removed the duplication when checking for self-dependencies.

This changed is joined with a change in pubgrub (astral-sh/pubgrub#27) that simplifies the same code path.

To support diverging urls, we have to check urls when adding dependencies (after forking). To prepare for this, i've moved adding dependencies for the current version to `SolveState::add_package_version_dependencies` and removed the duplication when checking for self-dependencies.

This changed is joined with a change in pubgrub (astral-sh/pubgrub#27) that simplifies the same code path.
@konstin konstin added the internal A refactor or improvement that is not user-facing label Jun 19, 2024
@konstin konstin requested a review from BurntSushi June 19, 2024 15:52
Copy link
Member

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

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

Nice, this is great, thank you!

@konstin konstin merged commit 3c5b136 into main Jun 19, 2024
47 checks passed
@konstin konstin deleted the konsti/refactor-adding-versions branch June 19, 2024 18:19
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