ITADN

fix: respect DENO_DIR and XDG_* environment variables for fs cache

#358Pull Requestuncenter 创建于 2025-02-05
U
uncentercommented
Closes #357. To resolve the "configDir" (now appropriately renamed to "cacheDir"); 1. `$DENO_DIR` is checked, and is the result if present. 2. Then `$XDG_CACHE_HOME` is checked, if present the result becomes `$XDG_CACHE_HOME/deno`. 4. Finally defaults to `$HOME/.deno` if the above two fail. The path resolved from the above three steps is then joined with the `deployctl` subdirectory.
合并状态:未合并 关闭于 2025-04-08 3 条评论