Skip to content

False positive in warning: uv does not recognize "~" in $PATH #6802

@paravoid

Description

@paravoid

uv warns about /home/$user/.local/bin not being in my PATH, although ~/.local/bin is, i.e. not recognizing the tilde.

Demo:

$ uv --version
uv 0.4.0

$ echo $SHELL
/bin/bash

$ cat /etc/debian_version 
trixie/sid

$ echo $PATH
~/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

$ uv tool install ruff
Resolved 1 package in 7ms
Installed 1 package in 1ms
 + ruff==0.6.2
Installed 1 executable: ruff
warning: `/home/paravoid/.local/bin` is not on your PATH. To use installed tools, run `export PATH="/home/paravoid/.local/bin:$PATH"` or `uv tool update-shell`.

$ which ruff
/home/paravoid/.local/bin/ruff

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions