-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Repeated message about cache being disabled if pip cache is run with sudo #8142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not particularly worried with that, as the output is quite easy to understand. The increased complexity to resolve this is probably not worth it. |
... and we don't recommend running pip with sudo anyway 🙂 |
Agreed that if the output is good enough to understand currently, we shouldn't make changes to it which need a non-trivial amount of effort. Should I go ahead and close the issue then? |
Yes please. |
Environment
Description
Running
pip cache
commands with sudo print two messages about cache being disabled, one a Warning and other an Error. (The second error message was introduced recently in #8124)Expected behavior
Ideally only one message should be printed. Or the second message can be supplanted to distinguish the case between using sudo, or using
--no-cache-dir
(We haveoptions.cache_dir = None
in the former, andoptions.cache_dir = False
in the latterHow to Reproduce
Run
sudo pip cache <subcommand>
Output
The text was updated successfully, but these errors were encountered: