Closed gozdal closed 2 weeks ago
You've hit an interesting edge case: The path contains a trailing space, where we can create the directory, but writing a file joined to that directory fails.
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)
That's interesting, wouldn't think that set foo=bar && cmd
would set foo=bar
with a space at the end?
I am trying to work around another issue in concurrently using the same cache directory by setting
UV_CACHE_DIR
. If I doI correctly see
However, if I want to create a venv I get:
set UV_CACHE_DIR=%LOCALAPPDATA%\uv\cache-foo && uv venv venv
uv 0.1.33 (2cee7525c 2024-04-17)
, on Windows Server 2016 and 2022