mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00

When running ``` set UV_CACHE_DIR=%LOCALAPPDATA%\uv\cache-foo && uv venv venv ``` in windows CMD, the error would be just ``` error: The system cannot find the path specified. (os error 3) ``` The problem is that the first action in the cache dir is adding the tag, and the `cachedir` crate is using `std::fs` instead of `fs_err`. I've copied the two functions we use from the crate and changed the import from `std::fs` to `fs_err`. The new error is ``` error: failed to open file `C:\Users\Konstantin\AppData\Local\uv\cache-foo \CACHEDIR.TAG` Caused by: The system cannot find the path specified. (os error 3) ``` which correctly explains the problem. Closes #3280
33 lines
1 KiB
TOML
33 lines
1 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 }
|
|
fs-err = { workspace = true, features = ["tokio"] }
|
|
nanoid = { workspace = true }
|
|
rustc-hash = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
tempfile = { workspace = true }
|
|
tracing = { workspace = true }
|
|
url = { workspace = true }
|
|
walkdir = { workspace = true }
|
|
rmp-serde = { workspace = true }
|