cli / cli

GitHub’s official command line tool
https://cli.github.com
MIT License
36.21k stars 5.47k forks source link

Freeze on freeBSD when using gh cli and invoking gh auth login. #9298

Open gabriel-05-dev opened 3 weeks ago

gabriel-05-dev commented 3 weeks ago

Describe the bug

Version 2.42.1 Github CLI FreeBSD version 14.1. Running "gh auth login" & going through the options, selecting ssh will cause the application to hang on the command line. Cntrl-c doesnt work & crash happens after 20ish minutes.

Steps to reproduce the behavior

  1. gh auth login
  2. -> select github.com
  3. -> select ssh
  4. Program displays 'generate a new ssh key to add to your account'
  5. Cannot input text, force close.

Expected vs actual behavior

i expected to type "n" and expected the process to continue allowing for user input.

gabriel-05-dev commented 3 weeks ago

Issue also affects trying to login with a token using the interactive gh auth login

williammartin commented 1 week ago

Looks like it might be a duplicate of https://github.com/cli/cli/issues/6334 but I'm not sure, since you're saying it freezes when logging in with a token. https://github.com/cli/cli/issues/6334#issuecomment-1259964823 mentions a workaround with xorg, could you maybe try that and see if it works?

Could you also update to the latest version of gh and see if you experience the same thing? We did fix some deadlocks in a dependency around keychain prompting.

gabriel-05-dev commented 1 week ago

Will check once i get back from holiday. It may be the same issue, however sometimes i was able to get past the different stages of authentication.

gabriel-05-dev commented 4 days ago

Hi, xorg workaround worked for me. I did update gh to the latest version and issue persists. Not sure what it could be.

Feel free to close this ticket/ or merge with https://github.com/cli/cli/issues/6334.