-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Don't use file locking to protect selfcheck state file #6954
Comments
Where would this go? If it's within site-packages, it will have problems with permissions (the system site-packages is often read-only) but if it's elsewhere, how will it get cleared up? For example, I routinely use |
For context, moving to per-prefix selfcheck state files is implemented by #6855 (I have added this to the original issue).
In #6855, it is
Great question. There is nothing for it in #6855, but we could envision either an ad-hoc activity supported as part of #4685, or a task that removes any selfcheck state files where the prefix path no longer exists. The task could be done by pip when it is updating its state file. I would prefer to implement this after we get rid of the file locking. |
I guess this is reasonable, as it's in the cache directory (which is already essentially a repository of opaque "clutter" from the POV of the user. It's not like the state files are a space issue. I've never really thought about it, but I guess we don't have any form of cache housekeeping at the moment, so this is really just a further case of that. I raised #6956 to track the question of whether we need some form of cache housekeeping. |
What's the problem this feature will solve?
There are several issues around file locking that have been filed over the years, specifically related to:
/
(pip hangs, lockfile can't acquire a lock, forward-slash in hostname #6938)Describe the solution you'd like
This will satisfy the linked issues and help us progress on #4766 to remove lockfile entirely.
Alternative Solutions
MkdirLockFile
as currently used in the HTTP cache - the downside of this approach is that it is not backwards-compatible, so we would need to use a separate file to track the information for modern pip versions. If we would need to use a separate file anyway, we might as well go one step further to progress Moving off lockfile #4766.Additional context
The text was updated successfully, but these errors were encountered: