- Poetry version: 1.6.1
- Python version: 3.10.12
- OS version and name: Ubuntu 22.04
- pyproject.toml: Irrelevant
Issue
Credentials configured in ~/.netrc are taking precedence over credentials configured with poetry config http-basic.repo-name. I've traced it down to the poetry.utils.Authenticator.request having the proper Authentication header for the credentials configured with poetry config, but the returned resp.request.headers contains the credentials configured in ~/.netrc.
I think this is a bug because the credentials configured explicitly with Poetry should take precedence over catch-all credentials configured in ~/.netrc. There is also no log line with -vvv indicating that credentials from ~./netrc are being used.
-vvvoption) and have included the output below.Issue
Credentials configured in
~/.netrcare taking precedence over credentials configured withpoetry config http-basic.repo-name. I've traced it down to thepoetry.utils.Authenticator.requesthaving the properAuthenticationheader for the credentials configured withpoetry config, but the returnedresp.request.headerscontains the credentials configured in~/.netrc.I think this is a bug because the credentials configured explicitly with Poetry should take precedence over catch-all credentials configured in
~/.netrc. There is also no log line with-vvvindicating that credentials from~./netrcare being used.