mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-26 18:06:45 +00:00
Support file://localhost/ schemes (#2657)
## Summary `uv` was failing to install requirements defined like: ``` file://localhost/Users/crmarsh/Downloads/iniconfig-2.0.0-py3-none-any.whl ``` Closes https://github.com/astral-sh/uv/issues/2652.
This commit is contained in:
parent
7a5571fa5c
commit
8587c440fe
6 changed files with 119 additions and 13 deletions
|
|
@ -1284,7 +1284,7 @@ pub async fn download_and_extract_archive(
|
|||
client: &RegistryClient,
|
||||
) -> Result<ExtractedSource, Error> {
|
||||
match Scheme::parse(url.scheme()) {
|
||||
// Ex) `file:///home/ferris/project/scripts/...` or `file:../editable/`.
|
||||
// Ex) `file:///home/ferris/project/scripts/...`, `file://localhost/home/ferris/project/scripts/...`, or `file:../ferris/`
|
||||
Some(Scheme::File) => {
|
||||
let path = url.to_file_path().expect("URL to be a file path");
|
||||
extract_archive(&path, cache).await
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue