-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two-step cache clean and prune needed to remove package from cache #6909
Comments
No this shouldn't be required. It looks like a bug. |
Not sure if this is the intended behavior, but it seems like >uv cache clean -v
DEBUG uv 0.4.2
No cache found at: C:\Users\User\AppData\Local\uv\cache
>uvx hatch --version
Installed 38 packages in 185ms <--- wow, that's confusingly fast on a cold cache
Hatch, version 1.12.0
>uv cache clean -v hatch
DEBUG uv 0.4.2
DEBUG Removing dangling cache entry: \\?\C:\Users\User\AppData\Local\uv\cache\archive-v0\zwnmKQVgeSUWVlA2QvK0E
Removed 122 files for hatch (466.2KiB)
>uv cache prune -v
DEBUG uv 0.4.2
Pruning cache at: C:\Users\User\AppData\Local\uv\cache
DEBUG Removing dangling cache entry: \\?\C:\Users\User\AppData\Local\uv\cache\environments-v1\1416b019b2dc3cb0
DEBUG Removing dangling cache entry: \\?\C:\Users\User\AppData\Local\uv\cache\archive-v0\mroAG5Am_YNe1aEo898zB
Removed 1577 files (52.2MiB)
>uv cache clean -v
DEBUG uv 0.4.2
Clearing cache at: C:\Users\User\AppData\Local\uv\cache
Removed 1395 files (53.8MiB) |
Should be fixed in the linked PR. |
The above was tested on |
Sorry, it was but what you’re seeing isn’t the same thing. We remove all ephemeral environments when you prune. That will also remove other dependencies besides hatch. |
Ah gotcha, so |
Removing a big package like torch or similar requires both cache clean and prune to remove it from cache. It's expected that the first clean would remove it?
The packages were installed like in #6907
We can also try with another package like hatch
Using uv 0.4.1
The text was updated successfully, but these errors were encountered: