-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix #4390 Allow --target to override --user #8555
Conversation
… options to overrule implicitly discovered --user.
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
Hi, as an user I find this confusing. If I think the real issue here is that from the current output it is not immediately obvious that where the option come from, i.e. the error is not descriptive enough. Such meta issue on log/error might need some closer look pip-wise, e.g. I was confused in GH-8530 as well. |
Documenting that option in But why should we force users to manually suppress an option they may not have set? We know that they passed |
I completely agree.
Because we don't know if they have set it or not. To quote the Zen of Python
and TBH I'd rather have an error then potentially running something I'm not completely aware of. IMHO tools should never try to be smart, but rather be consistent and predictive. I have no idea if that's what other users would expect though, so some research from the UX team would be really nice. @ei8fdb and @nlhkabu, do you thing it's worth it to conduct some queries on this? |
This PR enables us to tell the difference between options specified on the command line and defaults picked up from the environment or configuration file. |
@nlhkabu, some additional input would be great, although I'm not sure if it fits GH-8516, since the argument between @zooba and I here is more about the philosophy of pip's operation: should we error out conflicting options or use some logic imply one of the execution path? Moreover, as said by @zooba on hidden options
currently we are having too many options and flags. I think part of the UX work is to tidy this up, but in case there are still many, how will we provide the docs to the users? I think the hidden options like |
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
It looks like the underlying issue has been fixed, based on the linked issue being closed. Closing this out, since this is significantly out of date. |
Fixes #4390 by allowing explicitly provided --prefix and --target options to overrule implicitly discovered --user.