mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
Ignore UV_PYTHON_CACHE_DIR
when empty (#14336)
To match our semantics elsewhere
This commit is contained in:
parent
608a1020c6
commit
0cfbdcec09
1 changed files with 3 additions and 1 deletions
|
@ -772,7 +772,9 @@ impl ManagedPythonDownload {
|
|||
|
||||
let temp_dir = tempfile::tempdir_in(scratch_dir).map_err(Error::DownloadDirError)?;
|
||||
|
||||
if let Some(python_builds_dir) = env::var_os(EnvVars::UV_PYTHON_CACHE_DIR) {
|
||||
if let Some(python_builds_dir) =
|
||||
env::var_os(EnvVars::UV_PYTHON_CACHE_DIR).filter(|s| !s.is_empty())
|
||||
{
|
||||
let python_builds_dir = PathBuf::from(python_builds_dir);
|
||||
fs_err::create_dir_all(&python_builds_dir)?;
|
||||
let hash_prefix = match self.sha256 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue