Skip to content

Detect cases where uv partially removed a virtual environment and retry #14569

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Jul 11, 2025

This is a sort of janky fix for #13986 where we use a .venv/.uv-partial-rm marker to indicate that we attempted to delete an environment but failed then use that to allow deletion of an environment despite a missing pyvenv.cfg marker.

I think we may better be served by another approach, but this was an idea I wanted to sketch.

@zanieb zanieb added the bug Something isn't working label Jul 11, 2025
@zanieb zanieb temporarily deployed to uv-test-registries July 11, 2025 18:27 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant