kiliankoe / swift-outdated

A swift subcommand for displaying when your dependencies (SwiftPM or Xcode) are out of date
MIT License
342 stars 14 forks source link

Command stuck on ssh password input #17

Open krin-san opened 2 years ago

krin-san commented 2 years ago

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 commented 2 years ago

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

kiliankoe commented 1 year ago

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.