You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A project has 2 source entries defined, one of them set as 'primary'.
In a totally clean environment (deleted poetry cache, poetry.lock file, .venv) execute poetry install (or poetry update) and it works fine, and retrieves files from both sources (one of the packages only exists in the non-primary source).
But after that, every poetry install or poetry show command fail with
"Repository "myprivate" does not exist" (that's the non-primary source)
Description
A project has 2 source entries defined, one of them set as 'primary'.
In a totally clean environment (deleted poetry cache, poetry.lock file, .venv) execute
poetry install
(orpoetry update
) and it works fine, and retrieves files from both sources (one of the packages only exists in the non-primary source).But after that, every
poetry install
orpoetry show
command fail with"Repository "myprivate" does not exist" (that's the non-primary source)
The output of
poetry config repository
looks good:{'artifactory': {'url': 'https://removed.com/artifactory/api/pypi/pypi/simple/'}, 'myprivate': {'url': 'https://removed.com/artifactory/api/pypi/custom-pypi-local/simple/'}}
I can even copy and paste the urls above in a web browser and they open fine.
This is Poetry 1.8.2 in an Ubuntu WSL 2 instance in Windows 11.
Shortest path to manifest the issue:
git clone xyz_my_repo
cd xyz_my_repo
poetry install
poetry install
Workarounds
Delete the whole environment and try again.
Poetry Installation Method
pip
Operating System
Ubuntu 22.04
Poetry Version
Poetry (version 1.8.2)
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: