-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Improve docs for --root-user-action option #12066
Improve docs for --root-user-action option #12066
Conversation
I'm not actually sure we want to make the option more discoverable. After all, we strongly recommend not using it, so it seems perfectly reasonable to me to require anyone who wants this option to have to do a bit of research to discover it. This isn't just "security by obscurity" - the hope is that by doing the research, the user will be exposed to the arguments against what they are trying to do and discussions of alternative approaches. |
I see where you are coming from but doing a quick search of "pip as root user" yields this as the first result, with the most upvoted answer just saying to use |
9b952ab
to
d7ec820
Compare
Trying to unblock this PR. Feel free to close it if the proposed changes are fundamentally not desired. |
3b481f3
to
234c4c8
Compare
Python 3.9 on MacOS failed but I don't know how what I did could have triggered that and I don't have a MacBook to reproduce the error locally. Is that test flaky? Please let me know if there is anything I can do. |
I reran and it fixed itself. Just a hiccup in CI, it seems. |
Just curious, what's missing to get this merged and out of my list of open pull requests? 😋 |
d50d864
to
27042f9
Compare
I have rebased the branch one last time and will close this PR at some point in a few weeks if nothing happens. |
#11201 was too verbose, so this change just adds a note to the warning message itself and shows allowed values for the option when using
pip install --help
. The warning message now contains all information from the proposed alternative in the rejected PR but is easier to discover.Closes #11179.