You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since v2.24.3, any API action takes a very long time to run (WSL2, Ubuntu 20.04).
Steps to reproduce the behavior
gh pr list
Details
I could pin down the issue to the keyring, that seems to take very long to run on my machine. I think this is for me to solve, and not related to gh (any lead would be appreciated though!).
There is however, an issue with gh:
By default, it will not use the keyring, but as it's trying with a non existing host (example.com), it will not find a token and fallback to the keyring.
Workaround
A dumb workaround to fix this is to append the following to ~/.config/gh/hosts.yml:
Activity
[-]New keyring auth causing [/-][+]New keyring auth slowing down `gh`[/+]benjlevesque commentedon Mar 13, 2023
This resolved my keyring config: https://x410.dev/cookbook/wsl/sharing-dbus-among-wsl2-consoles/
still, wouldn't be better to not always rely on keyring, especially since it's used to check a dummy host?
samcoe commentedon Mar 14, 2023
@benjlevesque Thanks for reporting this. We should definitely be skipping the keyring when checking the dummy host as you suggested.
benjlevesque commentedon Mar 14, 2023
Thank you @samcoe. I've submitted a PR to fix it, but I'm not 100% sure about the Enterprise scenario.
mislav commentedon Mar 15, 2023
@benjlevesque Great find; thank you!