-
Notifications
You must be signed in to change notification settings - Fork 98
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
Deleting a private key on macOS Big Sur hangs #145
Comments
@dvkch were you able to find any workaround to input the user confirmation? |
@errfanwadia Unfortunately not. There might be a way in Ruby to connect to STDIN and STDOUT to know when the lib asks for confirmation and write it to STDOUT programmatically from another thread, but I haven't had the chance to test it though |
The current gem is not supporting this for now but the
see: |
you can definitely do this, but it is kind of painful obviously. All 3 are predefined as IO objects named |
I've encountered an issue where deleting a key would hang forever, using the following code:
If the key is a public key with no associated private key it works fine. If this is a public key with an associated private key, or if it is a private key itself, it will hang for around 2 minutes.
I have been able to reproduce this every time when running rspec on a Rails 6.0 project; the key was generated once and is re-added to the my test env using:
Maybe there is an additional argument or configuration that is missing to prevent user confirmation via STDIN ?
The text was updated successfully, but these errors were encountered: