Skip to content
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

Handle temp dir cleanup errors gracefully #8655

Closed
wants to merge 1 commit into from

Conversation

uranusjr
Copy link
Member

Close #7567. Instead of blowing up in the user’s face when a temporary directory fails to clean up, this adds an onerror hook to rmtree that logs the failure as a warning, and gracefully carry on.

@uranusjr uranusjr force-pushed the windows-remove-error-ignore branch 2 times, most recently from f98fd6d to d48eadc Compare July 29, 2020 21:57
Instead of blowing up in the user's face, gracefully carry on with a
warning that the operation failed.
@uranusjr uranusjr force-pushed the windows-remove-error-ignore branch from d48eadc to 61dbe1c Compare August 26, 2020 01:50
Copy link
Member

@pradyunsg pradyunsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me likey!

@uranusjr uranusjr closed this Nov 1, 2020
@uranusjr uranusjr deleted the windows-remove-error-ignore branch November 1, 2020 06:42
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve uninstall logic to handle file removal failure e.g. pip install -U pip on Windows
2 participants