mirror of https://github.com/astral-sh/uv
Merge 8c4ae03838 into 4f6f56b070
This commit is contained in:
commit
cd08d53a8a
|
|
@ -395,16 +395,18 @@ impl<'a> BaseClientBuilder<'a> {
|
|||
// Checks for the presence of `SSL_CERT_FILE`.
|
||||
// Certificate loading support is delegated to `rustls-native-certs`.
|
||||
// See https://github.com/rustls/rustls-native-certs/blob/813790a297ad4399efe70a8e5264ca1b420acbec/src/lib.rs#L118-L125
|
||||
let ssl_cert_file_exists = env::var_os(EnvVars::SSL_CERT_FILE).is_some_and(|path| {
|
||||
let path_exists = Path::new(&path).exists();
|
||||
if !path_exists {
|
||||
warn_user_once!(
|
||||
"Ignoring invalid `SSL_CERT_FILE`. File does not exist: {}.",
|
||||
path.simplified_display().cyan()
|
||||
);
|
||||
}
|
||||
path_exists
|
||||
});
|
||||
let ssl_cert_file_exists = env::var_os(EnvVars::SSL_CERT_FILE)
|
||||
.filter(|v| !v.is_empty())
|
||||
.is_some_and(|path| {
|
||||
let path_exists = Path::new(&path).exists();
|
||||
if !path_exists {
|
||||
warn_user_once!(
|
||||
"Ignoring invalid `SSL_CERT_FILE`. File does not exist: {}.",
|
||||
path.simplified_display().cyan()
|
||||
);
|
||||
}
|
||||
path_exists
|
||||
});
|
||||
|
||||
// Checks for the presence of `SSL_CERT_DIR`.
|
||||
// Certificate loading support is delegated to `rustls-native-certs`.
|
||||
|
|
|
|||
Loading…
Reference in New Issue