-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Make cache-write failures non-fatal #12302
Conversation
One sec, making some changes. |
9f5e704
to
4b8a7d2
Compare
self.path.display() | ||
) | ||
})?; | ||
if let Err(err) = temp_file.persist(&self.path) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The open
method on this struct already uses a similar pattern of warning (but ignoring) some errors.
4b8a7d2
to
ba0831b
Compare
|
Should we be retrying like we do in uv? |
I don't think we should in this case because it's not a guard against anti-virus stuff like with binaries; it's a guard against the file being in-use, and it's not clear how long we'd expect that to be true or whether we should expect it to resolve. |
Thanks for the fast fix (and the fast release cadence so I don't have to inquire about when we might get the fix)! |
Summary
Closes #12284.