Skip to content

Commit 1d6ddac

Browse files
committed
remove modules_hash
1 parent e358f72 commit 1d6ddac

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

crates/next-api/src/routes_hashes_manifest.rs

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
use anyhow::Result;
22
use serde::Serialize;
3-
use turbo_tasks::{
4-
FxIndexMap, FxIndexSet, ResolvedVc, TryFlatJoinIterExt, TryJoinIterExt, ValueToString, Vc,
5-
};
3+
use turbo_tasks::{FxIndexMap, FxIndexSet, ResolvedVc, TryFlatJoinIterExt, TryJoinIterExt, Vc};
64
use turbo_tasks_fs::{FileContent, FileSystemPath};
75
use turbo_tasks_hash::{DeterministicHash, Xxh3Hash64Hasher};
86
use turbopack_core::{
@@ -23,28 +21,23 @@ use crate::{
2321
#[turbo_tasks::value(shared)]
2422
pub struct EndpointHashes {
2523
pub sources_hash: u64,
26-
pub modules_hash: u64,
2724
pub outputs_hash: u64,
2825
}
2926

3027
impl EndpointHashes {
3128
pub fn merge<'l>(iterator: impl Iterator<Item = (&'l str, &'l EndpointHashes)>) -> Self {
3229
let mut sources_hasher = Xxh3Hash64Hasher::new();
33-
let mut modules_hasher = Xxh3Hash64Hasher::new();
3430
let mut outputs_hasher = Xxh3Hash64Hasher::new();
3531

3632
for (key, hashes) in iterator {
3733
key.deterministic_hash(&mut sources_hasher);
38-
key.deterministic_hash(&mut modules_hasher);
3934
key.deterministic_hash(&mut outputs_hasher);
4035
hashes.sources_hash.deterministic_hash(&mut sources_hasher);
41-
hashes.modules_hash.deterministic_hash(&mut modules_hasher);
4236
hashes.outputs_hash.deterministic_hash(&mut outputs_hasher);
4337
}
4438

4539
Self {
4640
sources_hash: sources_hasher.finish(),
47-
modules_hash: modules_hasher.finish(),
4841
outputs_hash: outputs_hasher.finish(),
4942
}
5043
}
@@ -90,12 +83,6 @@ pub async fn endpoint_hashes(
9083
.try_join()
9184
.await?;
9285

93-
let modules_hashes = all_modules
94-
.iter()
95-
.map(|module| module.content().hash())
96-
.try_join()
97-
.await?;
98-
9986
let output_assets = expand_output_assets(
10087
outputs
10188
.await?
@@ -119,13 +106,6 @@ pub async fn endpoint_hashes(
119106
}
120107
hasher.finish()
121108
};
122-
let modules_hash = {
123-
let mut hasher = Xxh3Hash64Hasher::new();
124-
for hash in modules_hashes.iter() {
125-
hash.deterministic_hash(&mut hasher);
126-
}
127-
hasher.finish()
128-
};
129109
let outputs_hash = {
130110
let mut hasher = Xxh3Hash64Hasher::new();
131111
for hash in outputs_hashes.iter() {
@@ -136,7 +116,6 @@ pub async fn endpoint_hashes(
136116

137117
Ok(EndpointHashes {
138118
sources_hash,
139-
modules_hash,
140119
outputs_hash,
141120
}
142121
.cell())
@@ -151,7 +130,6 @@ struct RoutesHashesManifest<'l> {
151130
#[serde(rename_all = "camelCase")]
152131
pub struct EndpointHashStrings {
153132
pub sources_hash: String,
154-
pub modules_hash: String,
155133
pub outputs_hash: String,
156134
}
157135

@@ -307,7 +285,6 @@ impl Asset for RoutesHashesManifestAsset {
307285
*k,
308286
EndpointHashStrings {
309287
sources_hash: format!("{:016x}", v.sources_hash),
310-
modules_hash: format!("{:016x}", v.modules_hash),
311288
outputs_hash: format!("{:016x}", v.outputs_hash),
312289
},
313290
)

0 commit comments

Comments
 (0)