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

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

Closed
paravoid opened this issue Aug 29, 2024 · 5 comments · Fixed by #6829
Closed

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

paravoid opened this issue Aug 29, 2024 · 5 comments · Fixed by #6829
Assignees
Labels
bug Something isn't working

Comments

@paravoid
Copy link

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
@charliermarsh charliermarsh added the bug Something isn't working label Aug 29, 2024
@charliermarsh
Copy link
Member

Thanks!

@charliermarsh charliermarsh self-assigned this Aug 29, 2024
@charliermarsh
Copy link
Member

Oddly, this doesn't seem to work for me on macOS. Do you know if support here is OS-specific?

@paravoid
Copy link
Author

I can't imagine this being OS-specific (but I don't know for sure). It may be shell-specific, though: are you using bash or zsh? bash expands the tilde, but zsh does not, AFAIK.

@charliermarsh
Copy link
Member

Ah yeah, I'm using Zsh. That would explain it.

@paravoid
Copy link
Author

Thanks so much!

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 a pull request may close this issue.

2 participants