swift-outdated icon indicating copy to clipboard operation
swift-outdated copied to clipboard

Command stuck on ssh password input

Open krin-san opened this issue 2 years ago • 2 comments

If Xcode project has a dependency with SSH link ([email protected]: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

krin-san avatar Apr 21 '22 09:04 krin-san

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

kiliankoe avatar Apr 22 '22 12:04 kiliankoe

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.

kiliankoe avatar Jun 25 '23 20:06 kiliankoe