From 7de13dd29dfac81292aab6f0cc20166f21e63452 Mon Sep 17 00:00:00 2001 From: Shane Kennedy Date: Thu, 13 Feb 2025 13:36:09 +0100 Subject: [PATCH] Make the cache dir inside project when --no-cache specified --- crates/uv-cache/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/uv-cache/src/lib.rs b/crates/uv-cache/src/lib.rs index 860db6d09..7b80e0bc9 100644 --- a/crates/uv-cache/src/lib.rs +++ b/crates/uv-cache/src/lib.rs @@ -161,7 +161,7 @@ impl Cache { /// Create a temporary cache directory. pub fn temp() -> Result { - let temp_dir = tempfile::tempdir()?; + let temp_dir = tempfile::tempdir_in("")?; Ok(Self { root: temp_dir.path().to_path_buf(), refresh: Refresh::None(Timestamp::now()),