Skip to content

Commit

Permalink
deterministic ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Dec 2, 2022
1 parent c4e2671 commit 97c0c74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/next-core/src/manifest.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::collections::HashSet;

use anyhow::Result;
use indexmap::IndexSet;
use mime::APPLICATION_JSON;
use turbo_tasks::primitives::StringsVc;
use turbo_tasks_fs::File;
Expand All @@ -25,7 +26,7 @@ impl DevManifestContentSourceVc {
async fn find_routes(self) -> Result<StringsVc> {
let this = &*self.await?;
let mut queue = this.page_roots.clone();
let mut routes = HashSet::new();
let mut routes = IndexSet::new();

while let Some(content_source) = queue.pop() {
if let Some(combined_source) =
Expand Down Expand Up @@ -63,6 +64,8 @@ impl DevManifestContentSourceVc {
// ignore anything else
}

routes.sort();

Ok(StringsVc::cell(routes.into_iter().collect()))
}
}
Expand Down

0 comments on commit 97c0c74

Please sign in to comment.