pixi add
a command line app from within a pixi shell is not immediately available
#977
Closed
2 tasks done
Labels
🐞 bug
Something isn't working
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
Issue description
If you
pixi add
a command line tool (in this example ripgrep), while in a pixi shell for that project, the tool is not immediately available even though it's on$PATH
. In the example I gave above, I have ripgrep installed in a global environment, and that continues to be one that's available after I get a different version usingpixi add
, even though it should take precedence in the path, which is:I have to exit the
pixi shell
and then restart it before I get access to the one that is in that environment.I discovered this with
pip
, when I was trying to do an editable install. I had forgotten to addpip
to my environment, so when I was in thepixi shell
, I ranpixi add pip
and thenpip install -e .
, and the package ended up in a different environment (actually a conda environment that I had activated before starting the shell).Expected behavior
If I'm in a
pixi shell
and add a command line tool, it should be immediately available since it's on the$PATH
in abin
directory with highest precedence.The text was updated successfully, but these errors were encountered: