Use XDG (i.e. ~/.local/bin) instead of the Cargo home directory in the installer (#8420)

Reviving https://github.com/astral-sh/uv/pull/2236

Basically implements https://github.com/axodotdev/cargo-dist/issues/287
This commit is contained in:
Zanie Blue 2024-10-25 11:09:41 -05:00
parent 8034de7295
commit 383d4e774b
3 changed files with 9 additions and 6 deletions

View file

@ -185,14 +185,14 @@ If you need to remove uv from your system, just remove the `uv` and `uvx` binari
=== "macOS and Linux"
```console
$ rm ~/.cargo/bin/uv ~/.cargo/bin/uvx
$ rm ~/.local/bin/uv ~/.local/bin/uvx
```
=== "Windows"
```powershell
$ rm $HOME\.cargo\bin\uv.exe
$ rm $HOME\.cargo\bin\uvx.exe
$ rm $HOME\.local\bin\uv.exe
$ rm $HOME\.local\bin\uvx.exe
```
!!! tip