-
Notifications
You must be signed in to change notification settings - Fork 636
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
Keyring stderr is not displayed #4162
Comments
Thanks for raising this issue. If someone wants to look into forwarding the output, it should be relatively simple. I'm not sure if we should do it always or just on failure? |
I suggest to always display First, this is what And foremost because it allows the keyring plugin to do some kind of user interaction. A typical example would to ask the user to open a browser to finalize authentication, displaying a message like the following:
This would be the case of As a result, please don't wait for the |
I don't think we support interactive keyring prompts at all right now, we might need to consider what that looks like more holistically. |
Just to be clear on that, in my last message I was speaking about displaying So maybe there are 3 levels of implementation:
As far as I'm concerned, level 2 would be good enough for me (this is what |
## Summary Closes #4162 Changes keyring subprocess to allow display of stderr. This aligns with pip's behavior since pip 23.1. ## Test Plan * Tested using gnome-keyring-backend on a self-hosted private registry as well as the keyring script described in #4162 to confirm both existing functionality and the new stderr display. * Existing tests using `scripts/packages/keyring_test_plugin` are now showing its stderr output as well.
I'm confirming #4343 fixes this issue by displaying Thanks @samypr100 @zanieb 🤗 |
When calling
keyring
as a subprocess, itsstderr
is hidden when usinguv
version 0.2.9 on Linux whilepip
version 24.0 displays it to the user.Showing the
stderr
output seems important as it allowskeyring
to tell what's wrong in case of error or to ask user to perform some actions (e.g. clicking on an URL for authentication via a web browser).Preparation
I have modified my
$PATH
variable so that thekeyring
binary is the following:Also I have a web server on
localhost:8000
that returns a 401 error no matter what.UV
With trace info
Pip
The text was updated successfully, but these errors were encountered: