-
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
Poetry 1.1.0 Unable to Resolve Private Packages from pre-1.1.0 poetry.lock #3028
Comments
Can confirm. Legacy users need to run |
Our team just hit this issue, which breaks docker builds where the poetry version is not pinned. A short-term workaround that fixed our builds is to pin the poetry version ( |
Thanks! I was also struggling with this issue today(remote run fails). |
@xM8WVqaG I have also added #3034 to add a feature that adds |
@abn Thanks for the follow up to this but I have attempted All [package.source]
-reference = "gitlabprivate"
url = "https://gitlab.com/api/v4/projects/REDACTED/packages/pypi/simple"
+reference = "gitlabprivate" It still fails with the same error:
|
I'm still having this issue on and off. I have tried updating my lock file using:
I can confirm that $ poetry install
<snip>
• Installing XXX (1.0.0): Failed
RuntimeError
Unable to find installation candidates for XXX (1.0.0)
at progs/poetry/lib/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
71│ if not links:
→ 72│ raise RuntimeError(
73│ "Unable to find installation candidates for {}".format(package)
74│ )
75│
76│ # Get the best link If i rerun poetry install a second time, it sometimes will work fine. Sometimes a third run is required. However it always fails for the first run, but will pass at some point on subsequent runs. THis is fine on my local machine but is causing havoc on my CI runs and install always fails. Any ideas as to why this would happen? |
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).Ubuntu 18.04 bionic
Poetry version 1.0.10
N/A
Issue
Starting with 1.1.0 of Poetry
poetry install
is failing for some of our private packages:Note, it returns non-zero but other than the error in the middle of the install it doesn't actually have a specific message.
After playing around a bit with
poetry update
I discovered that addingtype = "legacy"
to thepoetry.lock
for those packages fixes this.Based on this part of the blogpost[1] that suggests 1.1.0 should be able to read previous versions but not vice versa, this is likely unintended.
[1] https://python-poetry.org/blog/announcing-poetry-1-1-0.html#lock-file-format-changes
The text was updated successfully, but these errors were encountered: