From c65dae64fec2545d92fd6a8f50c467dfc5efe06e Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 27 Feb 2025 21:14:09 -0500 Subject: [PATCH] Fix reference to macOS cache path (#11845) ## Summary Closes https://github.com/astral-sh/uv/issues/11809. --- crates/uv-settings/src/settings.rs | 4 ++-- docs/reference/settings.md | 4 ++-- uv.schema.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/uv-settings/src/settings.rs b/crates/uv-settings/src/settings.rs index be2800002..175c42402 100644 --- a/crates/uv-settings/src/settings.rs +++ b/crates/uv-settings/src/settings.rs @@ -218,8 +218,8 @@ pub struct GlobalOptions { pub no_cache: Option, /// Path to the cache directory. /// - /// Defaults to `$HOME/Library/Caches/uv` on macOS, `$XDG_CACHE_HOME/uv` or `$HOME/.cache/uv` on - /// Linux, and `%LOCALAPPDATA%\uv\cache` on Windows. + /// Defaults to `$XDG_CACHE_HOME/uv` or `$HOME/.cache/uv` on Linux and macOS, and + /// `%LOCALAPPDATA%\uv\cache` on Windows. #[option( default = "None", value_type = "str", diff --git a/docs/reference/settings.md b/docs/reference/settings.md index 6bf91db6c..bf9ba6271 100644 --- a/docs/reference/settings.md +++ b/docs/reference/settings.md @@ -448,8 +448,8 @@ bypasses SSL verification and could expose you to MITM attacks. Path to the cache directory. -Defaults to `$HOME/Library/Caches/uv` on macOS, `$XDG_CACHE_HOME/uv` or `$HOME/.cache/uv` on -Linux, and `%LOCALAPPDATA%\uv\cache` on Windows. +Defaults to `$XDG_CACHE_HOME/uv` or `$HOME/.cache/uv` on Linux and macOS, and +`%LOCALAPPDATA%\uv\cache` on Windows. **Default value**: `None` diff --git a/uv.schema.json b/uv.schema.json index 9a4b6c876..5cf2bc089 100644 --- a/uv.schema.json +++ b/uv.schema.json @@ -25,7 +25,7 @@ } }, "cache-dir": { - "description": "Path to the cache directory.\n\nDefaults to `$HOME/Library/Caches/uv` on macOS, `$XDG_CACHE_HOME/uv` or `$HOME/.cache/uv` on Linux, and `%LOCALAPPDATA%\\uv\\cache` on Windows.", + "description": "Path to the cache directory.\n\nDefaults to `$XDG_CACHE_HOME/uv` or `$HOME/.cache/uv` on Linux and macOS, and `%LOCALAPPDATA%\\uv\\cache` on Windows.", "type": [ "string", "null"