summaryrefslogtreecommitdiff
path: root/cli/tools/installer.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-05-16 00:09:35 -0700
committerGitHub <noreply@github.com>2024-05-16 07:09:35 +0000
commit88983fb3eb5a085f7d358a7a98d5c738a21b5d27 (patch)
treed4d83c5bd668edc25d30616fd4a3decc1cea3fb9 /cli/tools/installer.rs
parentbba553bea5938932518dc6382e464968ce8374b4 (diff)
fix(node): seperate worker module cache (#23634)
Construct a new module graph container for workers instead of sharing it with the main worker. Fixes #17248 Fixes #23461 --------- Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r--cli/tools/installer.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
index 9ff17ccc3..b13dea6fd 100644
--- a/cli/tools/installer.rs
+++ b/cli/tools/installer.rs
@@ -284,8 +284,9 @@ pub async fn install_command(
};
// ensure the module is cached
- CliFactory::from_flags(flags.clone())?
- .module_load_preparer()
+ let factory = CliFactory::from_flags(flags.clone())?;
+ factory
+ .main_module_graph_container()
.await?
.load_and_type_check_files(&[install_flags_global.module_url.clone()])
.await?;