diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-05-28 00:03:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-28 00:03:49 -0400 |
commit | d43e75cbb204e3537bd008e3b2a22d7de89a6f4c (patch) | |
tree | 5f086d6ceb2f5639e1020b6c647c44ed80cb6dd5 /cli/standalone/binary.rs | |
parent | a96844118c24d870abfe5332547dab99dc53d09c (diff) |
chore: fix flaky test_include_dir_recursive (#19291)
Maybe fixes this on main.
Diffstat (limited to 'cli/standalone/binary.rs')
-rw-r--r-- | cli/standalone/binary.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<VfsBuilder, AnyError> { 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) |