Open
Description
Summary
Describe the bug
When using uv==0.7.17
, installing packages with a requirements.txt
file that specifies a custom --find-links
URL fails with a timeout error. This issue does not occur in uv==0.7.16
.
It appears that uv 0.7.17 does not handle the trailing slash in the --find-links
URL correctly, resulting in failed requests.
To Reproduce
requirements.txt:
--find-links https://example.com/fileserver/packages/
custom-package==1.0.4
Command:
uv pip install -r /tmp/requirements.txt
Result:
error: Failed to read `--find-links` URL: https://example.com/fileserver/packages
Caused by: Failed to fetch: `https://example.com/fileserver/packages`
Caused by: Request failed after 3 retries
Caused by: error sending request for url (http://example.com/fileserver/packages)
Caused by: operation timed out
Expected behavior
Packages should be installed successfully using the custom find-links repository.
Additional context
- The same command and requirements file work correctly in
uv==0.7.16
. - The issue appears when the
--find-links
URL ends with a/
. - The URL is a private package repository (URL replaced with
https://example.com/fileserver/packages/
for privacy).
Possible related
- Change in URL normalization or handling between 0.7.16 and 0.7.17.
Platform
Linux 5.15.0-1079-azure x86_64 GNU/Linux
Version
uv 0.7.17
Python version
Python 3.10