Skip to content

Commit 2bc2cab

Browse files
committed
add more logging context, try cleaning up target on restore
1 parent 5e7d6c7 commit 2bc2cab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/docbuilder/caching.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ impl ArtifactCache {
178178
return Ok(());
179179
}
180180

181-
self.ensure_cache_exists()?;
181+
fs::create_dir_all(target_dir.parent().unwrap())?;
182182
fs::rename(cache_dir, target_dir).context("could not move cache directory to target")?;
183+
self.cleanup(target_dir)?;
183184
Ok(())
184185
}
185186

0 commit comments

Comments
 (0)