uv
58941618 - Replace executables with broken symlinks during `uv python install` (#9706)

Commit
1 year ago
Replace executables with broken symlinks during `uv python install` (#9706) I somehow got in a state where we'd fail to install with ``` error: Failed to install cpython-3.13.0-macos-aarch64-none Caused by: Executable already exists at `/Users/zb/.local/bin/python3` but is not managed by uv; use `--force` to replace it error: Failed to install cpython-3.13.0-macos-aarch64-none Caused by: Executable already exists at `/Users/zb/.local/bin/python` but is not managed by uv; use `--force` to replace it ``` but `python` / `python3` _were_ managed by uv, they just were linked to an installation that was deleted. This updates the logic to replace broken executables that are broken symlinks. We apply this to broken links regardless of whether or not we think the target is managed by uv.
Author
Parents
Loading