We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$XDG_CACHE_HOME
1 parent 36a7510 commit 8d5e282Copy full SHA for 8d5e282
rs_lib/src/deno_dir.rs
@@ -29,6 +29,8 @@ pub fn resolve_deno_dir<
29
maybe_custom_root.or_else(|| sys.env_var_path("DENO_DIR"));
30
let root: PathBuf = if let Some(root) = maybe_custom_root {
31
root
32
+ } else if let Some(xdg_cache_dir) = sys.env_var_path("XDG_CACHE_HOME") {
33
+ xdg_cache_dir.join("deno")
34
} else if let Some(cache_dir) = sys.env_cache_dir() {
35
// We use the OS cache dir because all files deno writes are cache files
36
// Once that changes we need to start using different roots if DENO_DIR
0 commit comments