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

Solver fixes #5305

Merged
merged 1 commit into from
Mar 20, 2022
Merged

Solver fixes #5305

merged 1 commit into from
Mar 20, 2022

Conversation

dimbleby
Copy link
Contributor

@dimbleby dimbleby commented Mar 13, 2022

Pull Request Check List

Resolves: #4683
Resolves: #5019

  • Added tests for changed code.
  • Updated documentation for changed code.

A series of commits tidying up the depth-first search in the solver, and a fix for #4683 (and its duplicate #5019)

  • seen on the PackageNode should clearly be a set rather than a list, for efficient lookup

    • (actually I suspect that this is redundant because of visited in the search, and should be removed altogether... maybe another time)
  • visited in the search was strangely and unnecessarily complicated, I made it normal

  • dfs_visit() always returned True; it has no need of a return value at all

  • A testcase and fix for Poetry cannot install dvc[ssh] package #4683: in the language of the added testcase, the fix is to make sure that we visit both B and B[bar] in the search

@dimbleby
Copy link
Contributor Author

(I have rearranged my branches so that this MR contains only the fix, and the refactoring is in #5309)

Copy link
Member

@radoering radoering left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@radoering radoering merged commit 15f6ec1 into python-poetry:master Mar 20, 2022
@dimbleby dimbleby deleted the solver-fixes branch March 20, 2022 12:50
@kasteph kasteph mentioned this pull request May 30, 2022
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants