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

Enable uv tool uninstall uv on Windows #8963

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

Conversation

charliermarsh
Copy link
Member

Summary

Extending self-delete and self-replace functionality to uv itself on Windows.

Closes #6400.

@charliermarsh charliermarsh added the windows Specific to the Windows platform label Nov 9, 2024
let mut existing_entry_points = target_entry_points
.iter()
.filter(|(_, _, target_path)| target_path.exists())
.peekable();
Copy link
Member Author

Choose a reason for hiding this comment

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

@zanieb -- I noticed this logic is such that we delete the existing entrypoints, then we write them in the for (name, source_path, target_path) in &target_entry_points loop below. For self-replace purposes, it's easier to model it as a replace rather than a delete + write. Do you think that's a problem?

Copy link
Member

Choose a reason for hiding this comment

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

I think that's fine, though it'll change the error behavior. Perhaps we should defer errors until the end so we accomplish as many replacements as we can?

@zanieb
Copy link
Member

zanieb commented Nov 15, 2024

I figure this pull request is loosely on hold until we figure out what we want to do with #9143 and #9144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows Specific to the Windows platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FR: Support installing and managing uv with uv tool
2 participants