From d43e75cbb204e3537bd008e3b2a22d7de89a6f4c Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sun, 28 May 2023 00:03:49 -0400 Subject: chore: fix flaky test_include_dir_recursive (#19291) Maybe fixes this on main. --- cli/standalone/binary.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/standalone/binary.rs') diff --git a/cli/standalone/binary.rs b/cli/standalone/binary.rs index 578d23a0b..b5be2fed3 100644 --- a/cli/standalone/binary.rs +++ b/cli/standalone/binary.rs @@ -536,7 +536,7 @@ impl<'a> DenoCompileBinaryWriter<'a> { fn build_vfs(&self) -> Result { if let Some(node_modules_path) = self.npm_resolver.node_modules_path() { - let mut builder = VfsBuilder::new(node_modules_path.clone()); + let mut builder = VfsBuilder::new(node_modules_path.clone())?; builder.add_dir_recursive(&node_modules_path)?; Ok(builder) } else { @@ -544,7 +544,7 @@ impl<'a> DenoCompileBinaryWriter<'a> { // but also don't make this dependent on the registry url let registry_url = self.npm_api.base_url(); let root_path = self.npm_cache.registry_folder(registry_url); - let mut builder = VfsBuilder::new(root_path); + let mut builder = VfsBuilder::new(root_path)?; for package in self .npm_resolution .all_system_packages(&self.npm_system_info) -- cgit v1.2.3