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
poetry install --only-root incorrectly requires presence of path dependencies #6748
Comments
Not a bug -- this is currently as designed. As Poetry locks universally all deps need to be available even if they are not installed. Softening the validation to allow missing path deps has been discussed, but that would only allow install when a lock file exists, and would lead to inconsistency in installability as such. A PR relaxing this and adding a useful explanation of why a lock is needed to install with missing path deps could be considered, but no one in core has had any issues with this design/expressed an interest in pushing it themselves. |
I think I understand why this applies to most cases, but can you help me
understand why this applies with only-root? Given that the purpose of this
is to ignore deps?
…On Sat, Oct 8, 2022 at 2:53 PM Bjorn Neergaard ***@***.***> wrote:
Closed #6748 <#6748> as not
planned.
—
Reply to this email directly, view it on GitHub
<#6748 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJEP7KVHQBJWIALAAMNQ7TWCG7K3ANCNFSM6AAAAAARALNDRA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The install operation is designed and documented as creating the lock if it doesn't exist. While it may be possible to calculate metadata without generating the full lock, we'd have to redesign or bypass many layers of existing abstractions. If we allowed only-root to not have a lock, we'd likely have to do it at the same time or after the FR for --no-root with no pyproject.toml as the same large scale refactoring of of internals would be required. |
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) and have included the output below.Issue
Given a path dependency
../bar
, when installing usingpoetry install --only-root
, poetry fails withDirectory ../bar does not exist
, even though that should be irrelevant. I am hitting this issue with multi-stage docker builds where I dopoetry install --no-root
in one stage to install the deps, and thenpoetry install --only-root
in the next stage to install the app.This is related to #936 (and associated issues), but I think this issue is a little bit more targeted. Feel free to close as a dupe if you disagree.
The text was updated successfully, but these errors were encountered: