mirror of
https://github.com/astral-sh/uv
synced 2026-01-21 21:40:11 -05:00
This PR moves us to the Linux strategy for our global directories on macOS. We both feel on the team _and_ have received feedback (in Issues and Polls) that the `Application Support` directories are more intended for GUIs, and CLI tools are correct to respect the XDG variables and use the same directory paths on Linux and macOS. Namely, we now use: - `/Users/crmarsh/.local/share/uv/tools` (for tools) - `/Users/crmarsh/.local/share/uv/python` (for Pythons) - `/Users/crmarsh/.cache/uv` (for the cache) The strategy is such that if the `/Users/crmarsh/Library/Application Support/uv` already exists, we keep using it -- same goes for `/Users/crmarsh/Library/Caches/uv`, so **it's entirely backwards compatible**. If you want to force a migration to the new schema, you can run: - `uv cache clean` - `uv tool uninstall --all` - `uv python uninstall --all` Which will clean up the macOS-specific directories, paving the way for the above paths. In other words, once you run those commands, subsequent `uv` operations will automatically use the `~/.cache` and `~/.local` variants. Closes https://github.com/astral-sh/uv/issues/4411. --------- Co-authored-by: Zanie Blue <contact@zanie.dev>
35 lines
1.0 KiB
TOML
35 lines
1.0 KiB
TOML
[package]
|
|
name = "uv-cache"
|
|
version = "0.0.1"
|
|
description = "Generate stable hash digests across versions and platforms."
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
homepage = { workspace = true }
|
|
documentation = { workspace = true }
|
|
repository = { workspace = true }
|
|
authors = { workspace = true }
|
|
license = { workspace = true }
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
cache-key = { workspace = true }
|
|
distribution-types = { workspace = true }
|
|
pypi-types = { workspace = true }
|
|
uv-fs = { workspace = true, features = ["tokio"] }
|
|
uv-normalize = { workspace = true }
|
|
|
|
clap = { workspace = true, features = ["derive", "env"], optional = true }
|
|
directories = { workspace = true }
|
|
etcetera = { workspace = true }
|
|
fs-err = { workspace = true, features = ["tokio"] }
|
|
nanoid = { workspace = true }
|
|
rmp-serde = { workspace = true }
|
|
rustc-hash = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
tempfile = { workspace = true }
|
|
tracing = { workspace = true }
|
|
url = { workspace = true }
|
|
walkdir = { workspace = true }
|