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

Remove lossy resolution-to-requirements conversion in install plan #7798

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

charliermarsh
Copy link
Member

Summary

This is a longstanding piece of technical debt. After we resolve, we have a bunch of ResolvedDist entries. We then convert those to Requirement (which is lossy -- we lose information like "the index that the package was resolved to"), and then back to Dist.

@charliermarsh charliermarsh marked this pull request as ready for review September 30, 2024 01:03
@charliermarsh charliermarsh added the internal A refactor or improvement that is not user-facing label Sep 30, 2024
.cloned()
.expect("Resolution should contain all packages")
})
.collect::<Vec<_>>();
Copy link
Member Author

Choose a reason for hiding this comment

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

Getting rid of this is so good.

@charliermarsh charliermarsh force-pushed the charlie/plan branch 2 times, most recently from f7276de to 598190a Compare September 30, 2024 01:06
@charliermarsh
Copy link
Member Author

This will enable us to fix some very subtle bugs in future PRs.

Copy link
Member

@konstin konstin left a comment

Choose a reason for hiding this comment

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

Less type conversions 👍

@charliermarsh charliermarsh merged commit b6ce39f into main Sep 30, 2024
61 checks passed
@charliermarsh charliermarsh deleted the charlie/plan branch September 30, 2024 14:13
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