Repository navigation
fix: do not fail when uninstalling a path dependency whose source is gone - #11093
Conversation
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. If the uninstall operation is incorrectly admitted, the installer will delete the installed path dependency even though its source cannot be validated. Reverting the change would stop future cases but would not restore package files already removed, although the impact is limited to the affected installation and may be repairable by reinstalling from another source.
MateehUllah
left a comment
There was a problem hiding this comment.
Reviewed the current patch. Skipping source-path validation specifically for uninstall operations is appropriate because removing an already-installed directory or file dependency does not require its original source to remain available. Validation remains unchanged for install and update operations, while the regression test reproduces synchronization with a missing directory dependency and verifies that the removal is scheduled successfully. I did not find a blocking correctness issue.
00cb16b to
dbd5855
Compare
|
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. |
Resolves: #9054
When a path dependency is removed from the project and its directory is gone,
poetry syncfailed while validating the uninstall operation because the source path no longer exists. Uninstalling does not need the source, so the validation no longer raises for uninstall operations.