Skip to content
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

URL credentials are not used for downloading packages #2611

Closed
NiklasRosenstein opened this issue Mar 22, 2024 · 2 comments
Closed

URL credentials are not used for downloading packages #2611

NiklasRosenstein opened this issue Mar 22, 2024 · 2 comments
Assignees

Comments

@NiklasRosenstein
Copy link
Contributor

  • Platform: amd64-darwin
  • UV version: 0.1.23

I'm using UV with an --index-url that contains basic auth credentials (e.g. for the form https://username@password:hostname/simple. It appears that UV is using the URL correctly to read the index, but on accessing individual packages it does not.

$ uv pip install --index-url https://[REDACTED]:[REDACTED]@[REDACTED]/artifactory/api/pypi/python-all/simple requests
error: Failed to download: requests==2.31.0
  Caused by: HTTP status client error (403 Forbidden) for url (https://[REDACTED]/artifactory/api/pypi/python-all/packages/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl#sha256=58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f)

A similar request works without issues using Pip:

$ pip install --index-url https://[REDACTED]:[REDACTED]@[REDACTED]/artifactory/api/pypi/python-all/simple flask
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://[REDACTED]:****@[REDACTED]/artifactory/api/pypi/python-all/simple
Collecting flask
...
@zanieb
Copy link
Member

zanieb commented Mar 22, 2024

Thanks for the report! Can you reproduce this on v0.1.22 as well? We just changed some things here.

Could you also share the -v verbose logs with your password omitted?

Thanks!

@zanieb zanieb self-assigned this Mar 22, 2024
@zanieb
Copy link
Member

zanieb commented Mar 22, 2024

Ah sorry this is actually fixed by #2592 already it's just not released in 0.1.23 like I thought.

We'll have this released soon. You can see the pull request for details. Let me know if you have a chance to build from source to test it!

@zanieb zanieb closed this as completed Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants