refactor the search for direct-origin dependencies#5904
refactor the search for direct-origin dependencies#5904radoering merged 3 commits intopython-poetry:masterfrom
Conversation
415a9d3 to
3263f33
Compare
75c2ecb to
25e0ac6
Compare
radoering
left a comment
There was a problem hiding this comment.
Have you thought about the following changes in behavior? (Not sure about the consequences or if it's relevant at all.)
package is not cloned anymore for file and directory dependencies. Thus, package.root_dir, package.files, package.develop are set according to the first dependency.
It seems like VCS dependencies were only put into the cache but never taken from it. Seems like a bug, but had the same effect as cloning. Now, package.develop is set according to the first dependency.
|
@radoering yes I noticed those things, but couldn't think of a reason that they should matter - so chose to trust the test suite when it said that it saw no problem. |
|
Me neither. Should be fine. |
|
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. |
refactoring suggested by #5903.
search_for_xxx()methods returned a list of length one, which is a bit weirdIMO it's kinda ugly that
search_for_xxx(dependency)makes updates todependency, that doesn't match my intuition for what such a method ought to do. But trying to refactor that broke more tests than I care to investigate.In particular this rearrangement ensures that the updates that we make to the input dependency are the same regardless of whether we got there via the
_deferred_cacheor not.