swift-outdated
swift-outdated copied to clipboard
Command stuck on ssh password input
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
Great edge case, thank you! And thanks for the pointer into the right direction as well. This should be easy enough to fix 👍
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.