Make the cache dir inside project when --no-cache specified

This commit is contained in:
Shane Kennedy 2025-02-13 13:36:09 +01:00
parent 0632e24d15
commit 7de13dd29d

View file

@ -161,7 +161,7 @@ impl Cache {
/// Create a temporary cache directory.
pub fn temp() -> Result<Self, io::Error> {
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()),