Fix reference to macOS cache path (#11845)

## Summary

Closes https://github.com/astral-sh/uv/issues/11809.
This commit is contained in:
Charlie Marsh 2025-02-27 21:14:09 -05:00 committed by GitHub
parent b56a0f8877
commit c65dae64fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -218,8 +218,8 @@ pub struct GlobalOptions {
pub no_cache: Option<bool>, pub no_cache: Option<bool>,
/// Path to the cache directory. /// Path to the cache directory.
/// ///
/// Defaults to `$HOME/Library/Caches/uv` on macOS, `$XDG_CACHE_HOME/uv` or `$HOME/.cache/uv` on /// Defaults to `$XDG_CACHE_HOME/uv` or `$HOME/.cache/uv` on Linux and macOS, and
/// Linux, and `%LOCALAPPDATA%\uv\cache` on Windows. /// `%LOCALAPPDATA%\uv\cache` on Windows.
#[option( #[option(
default = "None", default = "None",
value_type = "str", value_type = "str",

View File

@ -448,8 +448,8 @@ bypasses SSL verification and could expose you to MITM attacks.
Path to the cache directory. Path to the cache directory.
Defaults to `$HOME/Library/Caches/uv` on macOS, `$XDG_CACHE_HOME/uv` or `$HOME/.cache/uv` on Defaults to `$XDG_CACHE_HOME/uv` or `$HOME/.cache/uv` on Linux and macOS, and
Linux, and `%LOCALAPPDATA%\uv\cache` on Windows. `%LOCALAPPDATA%\uv\cache` on Windows.
**Default value**: `None` **Default value**: `None`

2
uv.schema.json generated
View File

@ -25,7 +25,7 @@
} }
}, },
"cache-dir": { "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": [ "type": [
"string", "string",
"null" "null"