uv
uv copied to clipboard
Question about space efficiency of the git cache
If I understand correctly, installing from git URL creates the following in the uv cache:
- the git objects in
git-v0/db - a git checkout in
git-v0/checkouts(with hardlinks to the git objects but copies of the source files) - the built wheel in
wheels-v0 - an extract of the built wheel
archive-v0, from which the installed files are hard linked (or CoW'ed)
My question is: is it important to keep (2) when we have (3), and maybe (3) when we have (4)? Are there situations where checkouts (2) are actually read again in subsequent installs?
I'm the right person to answer this but I need to think a bit on some of the questions (and am trying to prioritize correctness issues). My initial reaction is that (3) is probably not necessary (but we tend to avoid trying to delete from the cache to prevent against concurrency issues).
My initial reaction is that (3) is probably not necessary
In connection with pip wheel (#1681), I think (3) is useful, probably more than (2).