-
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
Auth failure when installing from multiple private repos #3291
Comments
Might be related to #3216 |
Please see #3303 |
I hit this as well today and I can't get this working with any of the workarounds posted in the linked issues. In my case I am using multiple private Gitlab registries and they return 401, not 403. Locking also works as described the author of this issue. This makes this a real blocker for us. |
Alright, in my case I had a |
Hello There |
@languitar issue happened for me as well. This should definitely be in the docs and/or re-prioritized. Very hard to notice it was happening too. |
Good to know it worked. I am also using gitlab. When i hardcode the http-basic.reponane {User} {Token} in Docker file its works. But when i try to pass {User} and {Token} from docker-compose args then it doesnt work. Any clue on how to make it work |
I also faced this issue today (poetry version is 1.5.1). I have 2 repositories with their corresponding credentials set up (via When I try to install a package from |
Same problem here on Poetry 1.6.1 |
Thank you, my friend! Resolved my problem))) |
-vvv
option).pyproject.toml
:And the credentials are set like this:
Everything is locked perfectly in
poetry.lock
with both repos marked astype = legacy
.Issue
It is time for
poetry install
and I expect both packages to be installed.It turns out that only package1 will be installed and package2 will give this error:
If I explicitly set repository through
poetry config repositories.repo2 url2
, it works the other way around.Now package2 is installed and package1 will give the same error:
My first thought is that if I also do
poetry config repositories.repo1 url1
, it will fix it.No, it did not. Same error for package1:
Maybe disable the parallel installer will fix it now that I have both repositories in poetry configuration. I did
poetry config installer.parallel false
. And my config looks like this (frompoetry config --list
, the same checked with--local
):No, it gave me the same error for package1.
I also tried to clear pip and poetry cache by removing
.cache/pip
and.cache/poetry
. It did not made a difference.Finally, I reverted poetry configuration by unsetting the repositories and re-enabling parallel installer. And create a set of universal credentials for both repositories and set it like this:
And it worked. Both packages were installed without issue!
The text was updated successfully, but these errors were encountered: