-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Optional path dependency cause poetry update to fail when the path is missing #2091
Comments
yep, agree, would be very helpful to fix |
The issue with this is that when doing update or generating lock file all dependencies, including optional ones are required in order get a correct dependency tree. Avoiding this when resolving dependencies, could lead to other issues. It might be better to fail here. If a lock file already exists and the dependency is not activated (via extra etc.), this should not fail. Re-using the existing package information from the lock file should mitigate this issue. We could, if data is available, treat this as a warning instead of an error. |
I think you get the same error if you want to move a path dependency. Let's it was under (seems definitely related to #668) |
Duplicate of #668 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
After modifying the
pyproject.toml
file to include an optional path dependency,poetry update
fails with the following error:I would expect
poetry
to ignore the missing directory as the dependency is optional.Might be related to #668
The text was updated successfully, but these errors were encountered: