From 1b1b190fcadc79c8881b6fad0b5a78144a8e6249 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Wed, 29 Jan 2025 13:03:45 +0100 Subject: [PATCH] use mark_root for single module graph --- crates/next-api/src/project.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/next-api/src/project.rs b/crates/next-api/src/project.rs index 49d899ae5c62a..c296969b652d5 100644 --- a/crates/next-api/src/project.rs +++ b/crates/next-api/src/project.rs @@ -27,6 +27,7 @@ use turbo_tasks::{ debug::ValueDebugFormat, fxindexmap, graph::{AdjacencyMap, GraphTraversal}, + mark_root, trace::TraceRawVcs, Completion, Completions, FxIndexMap, IntoTraitRef, NonLocalValue, OperationValue, OperationVc, ReadRef, ResolvedVc, State, TaskInput, TransientInstance, TryFlatJoinIterExt, Value, Vc, @@ -897,9 +898,9 @@ impl Project { pub async fn whole_app_module_graphs(self: ResolvedVc) -> Result> { async move { let module_graphs_op = whole_app_module_graph_operation(self); - let module_graphs_vc = module_graphs_op.resolve_strongly_consistent().await?; + let module_graphs_vc = module_graphs_op.connect().resolve().await?; let _ = module_graphs_op.take_issues_with_path().await?; - Ok(*module_graphs_vc) + Ok(module_graphs_vc) } .instrument(tracing::info_span!("module graph for app")) .await @@ -1605,6 +1606,7 @@ impl Project { async fn whole_app_module_graph_operation( project: ResolvedVc, ) -> Result> { + mark_root(); let base_single_module_graph = SingleModuleGraph::new_with_entries(project.get_all_entries()); let base_visited_modules = VisitedModules::from_graph(base_single_module_graph);