Skip to content

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
@zanieb zanieb closed this Jul 22, 2025
zanieb added a commit that referenced this pull request Jul 22, 2025
An alternative to #14569

This isn't a complete solution to
#13986, in the sense that it's
still "fatal" to `uv sync` if we fail to delete an environment, but I
think that's okay — deferring deletion is much more complicated. This at
least doesn't break users once the deletion fails. The downside is we'll
generally treat this virtual environment is valid, even if we nuked a
bunch of it.

Closes #13986
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.

2 participants