From 94f040ac2867706d261e2fe1ec8bc2c4263eb6ab Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 29 May 2024 14:38:18 -0400 Subject: fix: bump cache sqlite dbs to v2 for WAL journal mode change (#24030) In https://github.com/denoland/deno/pull/23955 we changed the sqlite db journal mode to WAL. This causes issues when someone is running an old version of Deno using TRUNCATE and a new version because the two fight against each other. --- cli/npm/managed/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/npm/managed/mod.rs') diff --git a/cli/npm/managed/mod.rs b/cli/npm/managed/mod.rs index 938c16d9a..95d4dca0f 100644 --- a/cli/npm/managed/mod.rs +++ b/cli/npm/managed/mod.rs @@ -594,7 +594,7 @@ impl CliNpmResolver for ManagedCliNpmResolver { .into_iter() .collect::>(); package_reqs.sort_by(|a, b| a.0.cmp(&b.0)); // determinism - let mut hasher = FastInsecureHasher::new(); + let mut hasher = FastInsecureHasher::new_without_deno_version(); // ensure the cache gets busted when turning nodeModulesDir on or off // as this could cause changes in resolution hasher.write_hashable(self.fs_resolver.node_modules_path().is_some()); -- cgit v1.2.3