You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am using coveo-stew which imports poetry. Even though pipx install coveo-stew does not create a .local/bin/poetry.exe, running pipx uninstall coveo-stew will delete .local/bin/poetry.exe if it exists.
How to reproduce
run pipx install coveo-stew in a pipx that doesn't have poetry
Look in the .local/bin folder; there is no poetry exec (it's in .local/pipx/venvs/etc; that's OK)
run pipx install poetry
The poetry.exe executable is created in .local/bin
run pipx uninstall coveo-stew
pipx deletes the poetry.exe file from .local/bin 😱
Expected behavior
Executables should not be deleted unless they directly belong to the project.
The text was updated successfully, but these errors were encountered:
I think this is related to: #564 which was supposed to be fixed by #650. #650 has not been released yet.
BUT! Even with the unreleased code this bug still exists ☹️
I just tried this, and sadly uninstalling coveo-stew has so many dependencies that pipx incorrectly deletes a ton of useful executables when it is uninstalled, besides poetry.exe.
This is an excellent test case, I'm not sure at the moment why #650 didn't fix this, but I will dig in to find out.
Ah the problem is I fixed _get_exposed_app_paths_for_package() but unfortunately pipx uninstall doesn't use that function, it uses largely duplicate code that has not been fixed.
Describe the bug
I am using
coveo-stew
which importspoetry
. Even thoughpipx install coveo-stew
does not create a.local/bin/poetry.exe
, runningpipx uninstall coveo-stew
will delete.local/bin/poetry.exe
if it exists.How to reproduce
pipx install coveo-stew
in a pipx that doesn't have poetry.local/bin
folder; there is no poetry exec (it's in .local/pipx/venvs/etc; that's OK)pipx install poetry
poetry.exe
executable is created in.local/bin
pipx uninstall coveo-stew
poetry.exe
file from.local/bin
😱Expected behavior
Executables should not be deleted unless they directly belong to the project.
The text was updated successfully, but these errors were encountered: