From 64ed53cf184fb05cbfe9f0336bc8695ff0e800f8 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 24 Feb 2026 01:00:48 +0900 Subject: fix(cache): enable dist archive caching for all commands files_cache was Option<&Cache> and install_from_lock always passed None, so downloaded zip/tar archives were never cached. Make the parameter non-optional (&Cache) and wire it through every command that downloads dist archives (install, update, require, remove, create-project, archive). The Cache internally respects --no-cache via its enabled flag, so the Option wrapper was unnecessary. Co-Authored-By: Claude Opus 4.6 --- crates/mozart/src/commands/reinstall.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/mozart/src/commands/reinstall.rs') diff --git a/crates/mozart/src/commands/reinstall.rs b/crates/mozart/src/commands/reinstall.rs index abc207f..875d5f0 100644 --- a/crates/mozart/src/commands/reinstall.rs +++ b/crates/mozart/src/commands/reinstall.rs @@ -239,7 +239,7 @@ pub async fn execute( &vendor_dir, &locked.name, Some(&mut progress), - Some(&files_cache), + &files_cache, ) .await?; -- cgit v1.3.1