Skip to content

Commit

Permalink
Try to prevent duplicate issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Nov 29, 2024
1 parent 116924e commit 42d2f75
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions crates/next-api/src/module_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ use petgraph::{
visit::Dfs,
};
use tracing::Instrument;
use turbo_tasks::{FxIndexMap, ResolvedVc, TryFlatJoinIterExt, TryJoinIterExt, Vc};
use turbo_tasks::{
CollectiblesSource, FxIndexMap, ResolvedVc, TryFlatJoinIterExt, TryJoinIterExt, Vc,
};
use turbopack_core::{
context::AssetContext,
issue::Issue,
module::{Module, Modules},
reference::primary_referenced_modules,
};
Expand Down Expand Up @@ -318,9 +321,10 @@ pub async fn get_reduced_graphs_for_endpoint(
false,
vec![
async move {
SingleModuleGraph::new_with_entries(project.get_all_entries())
.to_resolved()
.await
let vc = SingleModuleGraph::new_with_entries(project.get_all_entries());
let vc = vc.resolve_strongly_consistent().await?;
let _ = vc.take_collectibles::<Box<dyn Issue>>();
vc.to_resolved().await
}
.instrument(tracing::info_span!("module graph for app"))
.await?,
Expand Down

0 comments on commit 42d2f75

Please sign in to comment.