summaryrefslogtreecommitdiff
path: root/cli/cache
diff options
context:
space:
mode:
Diffstat (limited to 'cli/cache')
-rw-r--r--cli/cache/caches.rs8
-rw-r--r--cli/cache/common.rs2
-rw-r--r--cli/cache/emit.rs2
3 files changed, 8 insertions, 4 deletions
diff --git a/cli/cache/caches.rs b/cli/cache/caches.rs
index 1be14b53b..54371cee4 100644
--- a/cli/cache/caches.rs
+++ b/cli/cache/caches.rs
@@ -48,9 +48,13 @@ impl Caches {
cell
.get_or_init(|| {
if let Some(path) = path {
- CacheDB::from_path(config, path, crate::version::deno())
+ CacheDB::from_path(
+ config,
+ path,
+ crate::version::DENO_VERSION_INFO.deno,
+ )
} else {
- CacheDB::in_memory(config, crate::version::deno())
+ CacheDB::in_memory(config, crate::version::DENO_VERSION_INFO.deno)
}
})
.clone()
diff --git a/cli/cache/common.rs b/cli/cache/common.rs
index a88ef8c97..0a68e9515 100644
--- a/cli/cache/common.rs
+++ b/cli/cache/common.rs
@@ -12,7 +12,7 @@ impl FastInsecureHasher {
pub fn new_deno_versioned() -> Self {
let mut hasher = Self::new_without_deno_version();
- hasher.write_str(crate::version::deno());
+ hasher.write_str(crate::version::DENO_VERSION_INFO.deno);
hasher
}
diff --git a/cli/cache/emit.rs b/cli/cache/emit.rs
index fcec9e84b..757df0b75 100644
--- a/cli/cache/emit.rs
+++ b/cli/cache/emit.rs
@@ -30,7 +30,7 @@ impl EmitCache {
pub fn new(disk_cache: DiskCache) -> Self {
Self {
disk_cache,
- cli_version: crate::version::deno(),
+ cli_version: crate::version::DENO_VERSION_INFO.deno,
emit_failed_flag: Default::default(),
}
}