mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
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.
This commit is contained in:
parent
fada25b0dd
commit
94f040ac28
22 changed files with 347 additions and 263 deletions
|
@ -594,7 +594,7 @@ impl CliNpmResolver for ManagedCliNpmResolver {
|
|||
.into_iter()
|
||||
.collect::<Vec<_>>();
|
||||
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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue