New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh <anything> hangs after completion for ~30 seconds #6867
Comments
% time gh --help
Work seamlessly with GitHub from the command line.
...
Use 'gh <command> <subcommand> --help' for more information about a command.
Read the manual at https://cli.github.com/manual
gh --help 0.05s user 0.02s system 0% cpu 30.058 total |
env http_proxy=<internet Proxy> time gh --version
gh version 2.21.2 (2023-01-03)
https://github.com/cli/cli/releases/tag/v2.21.2
0.05 real 0.04 user 0.01 sysLooks like |
Yes, to check for newer versions of itself. It does that only once per 24 hours. To disable this behavior, set Closing since this is a problem with proxy networking. |
|
@mislav Many GitHub Enterprise users work in an environment where access to the internet isn't a given; when tools need updating, they'd run the update mechanism specifically, e.g. Could the decision to check for updates be gated on the remote url containing |
|
We'd want users to stay up to date even if they're using gh to exclusively communicate with non-GitHub.com hosts, so to pay attention to git remotes would be a no go in my view. However, I do understand that some people prefer to use their package manager (like Right now, the only ways to prevent gh from "phoning home" is to either:
Do you think that our official deb & RPM packaged-gh should never contact |
Describe the bug
When I issue any command at all, even
gh --helpandgh --version, the command line waits a long time (~30 seconds) before returning control to the user.Steps to reproduce the behaviour
on macOS
brew upgrade ghgh --version..waits ~30 seconds before returning control.
Expected vs actual behaviour
It should execute the command, printing the output and any errors, then stop without waiting.
Logs
Paste the activity from your command line. Redact if needed.
The text was updated successfully, but these errors were encountered: