uv icon indicating copy to clipboard operation
uv copied to clipboard

Work across multiple drives

Open YDX-2147483647 opened this issue 5 months ago • 2 comments

$ uv add <any-package>
warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.
If the cache and target directories are on different filesystems, hardlinking may not be supported.

If uv only has cache in C:\, then I am unable to use uv in D:\, at least with “degraded performance”. This case might be common for Windows machines. For example, https://github.com/astral-sh/uv/issues/6397#issuecomment-2303368424:

this is about the relationship between the cache directory and the drive you're installing on. I'm guessing your cache is not on file:///E:? You can use --cache-dir or UV_CACHE_DIR to set a different cache directory on file:///E:.

I understand that hard links are not permitted across drives. However, pnpm creates multiple stores (one per drive), solving the issue. Will it be possible for uv?

YDX-2147483647 avatar Aug 25 '24 18:08 YDX-2147483647