Hermit overwrites user-set PATH when installing packages
Closed this issue ยท 0 comments
alecthomas commented
This came to light while using Python's virtual env.
(.venv) ๐ ~/Projects/hermit $ echo $PATH
/Users/aat/Projects/hermit/.venv/bin:/Users/aat/Projects/hermit/bin:/Users/aat/Projects/hermit/.hermit/go/bin:/Users/aat/bin:/opt/homebrew/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/bin:/usr/local/munki:/Applications/kitty.app/Contents/MacOS:/opt/homebrew/opt/fzf/bin
(.venv) ๐ ~/Projects/hermit $ hermit install jq
info:jq-1.6:install: Installing jq-1.6
(.venv) ๐ ~/Projects/hermit $ echo $PATH
/Users/aat/Projects/hermit/bin:/Users/aat/Projects/hermit/.hermit/go/bin:/Users/aat/bin:/opt/homebrew/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/bin:/usr/local/munki:/Applications/kitty.app/Contents/MacOS:/opt/homebrew/opt/fzf/bin
Note how .venv/bin
has been removed.