pipdeptree icon indicating copy to clipboard operation
pipdeptree copied to clipboard

Success code returned on missing packages

Open ssbarnea opened this issue 3 years ago • 2 comments

I was totally confused by output of pipdeptree when I tried to call it with pipdeptree -p ansiblelint, as it listed not deps and returned as success.

It was my mistake to mention module name instead of correct packaga name ansible-lint but clearly returning 0 is a bug, as a missing package should clearly return an error.

ssbarnea avatar Jul 21 '20 06:07 ssbarnea

Ok, I had not thought about exit codes that way. Currently, pipdeptree only exits with non-zero in case of conflicts (that too, only if id -w fail option is specified).

What's the use case you are trying to solve with pipdeptree?

naiquevin avatar Jul 21 '20 17:07 naiquevin

PR for this welcome.

gaborbernat avatar Sep 06 '22 07:09 gaborbernat