diff options
Diffstat (limited to 'cli/factory.rs')
-rw-r--r-- | cli/factory.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/factory.rs b/cli/factory.rs index 25f6afa74..224984643 100644 --- a/cli/factory.rs +++ b/cli/factory.rs @@ -304,8 +304,11 @@ impl CliFactory { let global_cache = self.global_http_cache()?.clone(); match self.cli_options()?.vendor_dir_path() { Some(local_path) => { - let local_cache = - LocalHttpCache::new(local_path.clone(), global_cache); + let local_cache = LocalHttpCache::new( + local_path.clone(), + global_cache, + deno_cache_dir::GlobalToLocalCopy::Allow, + ); Ok(Arc::new(local_cache)) } None => Ok(global_cache), |