Improve 'poetry add x y z' behavior when either x, y or z are already installed. #1925
Closed
2 tasks done
Labels
kind/feature
Feature requests/implementations
Feature Request
The command
poetry add x
fails with an error ifx
is already installed. It is common to write scripts where one issues the full command e.g. 'apt-get install --y x y z' when you want to make sure x, y and z are installed without first checking whether any of those pieces are already present in the system. Similarly, I would like my script to not abort because poetry errors out when I ask it to add a package that is already installed.Worse yet, when issuing
poetry add x y z
, if x is already installed, it will fail before installing y and z so it is not even possible to just ignore the error.Possible solution 1: make poetry ignore installed packages, just issue a warning in those cases and then skip to the next package that needs to be added.
Possible solution 2: to avoid changing behavior in these cases (which I do not think would be a big deal), add a command switch to enable this desirable behavior
The text was updated successfully, but these errors were encountered: