diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-08-17 11:25:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-17 15:25:00 +0000 |
commit | 6082e51094e0b5835d7c83586766cc611da2a382 (patch) | |
tree | 5f30d41f0fd63767d96f87b9fd80e64e30ec2e2d | |
parent | 6de35e4b2e47117deb87ba95acd271ee851fdbd9 (diff) |
fix(cli): handle missing `now` field in cache (#20192)
Fixes this error message:
```
error: missing field `now` at line 32 column 1
```
This would occur if someone used an old version of the deno_cache
library to cache information in the cache then tried to load it with the
latest CLI. Regression in the last patch when migrating to the
deno_cache_dir crate.
-rw-r--r-- | Cargo.lock | 4 | ||||
-rw-r--r-- | cli/Cargo.toml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Cargo.lock b/Cargo.lock index 6cdb4f551..2829a11b7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -971,9 +971,9 @@ dependencies = [ [[package]] name = "deno_cache_dir" -version = "0.5.0" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd2de39c0d15e801f5968334998336c159ac7e335f8acddd781982777195152" +checksum = "85e4ee308992ed5bd4977d251c0ce4bdfa4cc59efa4ee93d17ebe46eae1e4563" dependencies = [ "anyhow", "deno_media_type", diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 0879b45e8..c2c4b3ede 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -46,7 +46,7 @@ winres.workspace = true [dependencies] deno_ast = { workspace = true, features = ["bundler", "cjs", "codegen", "dep_graph", "module_specifier", "proposal", "react", "sourcemap", "transforms", "typescript", "view", "visit"] } -deno_cache_dir = "=0.5.0" +deno_cache_dir = "=0.5.2" deno_core = { workspace = true, features = ["include_js_files_for_snapshotting"] } deno_doc = "=0.64.0" deno_emit = "=0.25.0" |