-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Fix a bug where pip-sync would unexpectedly uninstall some packages #1919
Conversation
@@ -59,7 +60,7 @@ def dependency_tree( | |||
|
|||
while queue: | |||
v = queue.popleft() | |||
key = v.key | |||
key = str(canonicalize_name(v.key)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FTR: I'd prefer an explicit NormalizedName
type instead of str conversion, so I'll refactor the types in a follow-up PR.
@@ -59,7 +60,7 @@ def dependency_tree( | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to worry about root_key
and the installed_keys
keys potentially being differently formatted at the time of the if root_key in installed_keys
check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Valid point. Thanks! This is why we should use NormalizedName
type instead of str for package names. I'm going to address that in a follow-up PR as commented here.
Hey @jazzband/pip-tools! We seem to have encountered a bit of an issue with pip-sync that can be annoying. If anyone could kindly find the time to review the fix, I would greatly appreciate it. I would prepare a release soon. Thank you for your time and cooperation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Approving, with the understanding that a follow up PR will further iron out our name/key discrepancies.
Thanks a lot for the quick fix! |
Contributor checklist
Maintainer checklist
backwards incompatible
,feature
,enhancement
,deprecation
,bug
,dependency
,docs
orskip-changelog
as they determine changelog listing.