Skip to content
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

Command stuck on ssh password input #17

Open
krin-san opened this issue Apr 21, 2022 · 2 comments
Open

Command stuck on ssh password input #17

krin-san opened this issue Apr 21, 2022 · 2 comments

Comments

@krin-san
Copy link

If Xcode project has a dependency with SSH link (git@gitlab.com:team/private_repo) and SSH key to this host is protected with password, swift outdated command get stuck. Most likely, it awaits for the SSH key password input, but because it is executed in a subshell user don't see it and cannot type in password to continue.

Possible fix

Check if dependency link is SSH user@host:path, check (if possible) if password input is required and suggest to use ssh-agent and ssh-add before swift outdated

Workardound

Perform eval (ssh-agent -t 10m -c); ssh-add ~/.ssh/YOUR_PRIVATE_KEY before swift outdated

@kiliankoe
Copy link
Owner

Great edge case, thank you! And thanks for the pointer into the right direction as well. This should be easy enough to fix 👍

@kiliankoe
Copy link
Owner

Hey again, sorry for nothing happening here. I've played around a bit with a possible fix for this every now and then in the last few months, but haven't gotten something functional together yet. It's definitely still on my list though for swift-outdated to do something instead of just getting stuck on interactive input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants