mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 05:35:33 +00:00
chore: fix flaky test_include_dir_recursive (#19291)
Maybe fixes this on main.
This commit is contained in:
parent
a96844118c
commit
d43e75cbb2
2 changed files with 26 additions and 17 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue