uv/crates/uv-client/src
Charlie Marsh 748582ee6f
Disable SSL in Git commands for `--allow-insecure-host` (#11210)
## Summary

Closes https://github.com/astral-sh/uv/issues/11176.

## Test Plan

- Created a self-signed certificate.
- Ran `openssl s_server -cert cert.pem -key key.pem -WWW -port 8443`.
- Verified that `cargo run pip install
git+https://localhost:8443/repo.git` failed with:

```
error: Git operation failed
  Caused by: failed to fetch into: /Users/crmarsh/.cache/uv/git-v0/db/0773914b3ec4a56e
  Caused by: process didn't exit successfully: `/usr/bin/git fetch --force --update-head-ok 'https://localhost:8443/repo.git' '+HEAD:refs/remotes/origin/HEAD'` (exit status: 128)
--- stderr
fatal: unable to access 'https://localhost:8443/repo.git/': SSL certificate problem: self signed certificate
```

- Verified that `cargo run pip install
git+https://localhost:8443/repo.git --allow-insecure-host
https://localhost:8443` continued further.
2025-02-04 10:57:57 -05:00
..
httpcache Consistently write log messages with capitalized first word (#11111) 2025-01-30 18:56:46 +00:00
base_client.rs Disable SSL in Git commands for `--allow-insecure-host` (#11210) 2025-02-04 10:57:57 -05:00
cached_client.rs Add `Send + 'static` bounds to cache deserialization (#10352) 2025-01-07 09:55:37 +00:00
error.rs Recommend `--native-tls` on SSL errors (#10605) 2025-01-14 13:17:19 -05:00
flat_index.rs Avoid treating non-existent `--find-links` as relative URLs (#9720) 2024-12-08 12:22:18 -05:00
html.rs Migrate from `urlencoding` to `percent-encoding` (#11144) 2025-01-31 16:29:46 -05:00
lib.rs Add retries for Python downloads (#9274) 2024-11-20 09:42:42 -05:00
linehaul.rs Add `uv-` prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
middleware.rs Enable workspace lint configuration in remaining crates (#4329) 2024-06-18 03:02:28 +00:00
registry_client.rs Disable SSL in Git commands for `--allow-insecure-host` (#11210) 2025-02-04 10:57:57 -05:00
remote_metadata.rs Upgrade minimum Rust version to 1.83 (#9815) 2024-12-11 10:06:19 -06:00
rkyvutil.rs Remove unnecessary prefixes (#10158) 2024-12-25 14:18:01 -05:00
tls.rs Always attach URL to network errors (#8444) 2024-10-25 09:10:18 +00:00