Skip to content

gh <anything> hangs after completion for ~30 seconds #6867

@jbrwilkinson

Description

@jbrwilkinson

Describe the bug

When I issue any command at all, even gh --help and gh --version, the command line waits a long time (~30 seconds) before returning control to the user.

Steps to reproduce the behaviour

on macOS

  1. brew upgrade gh
  2. gh --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.

% env | grep PAGER
% echo $SHELL
/bin/zsh
% system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 12.6.2 (21G320)
      Kernel Version: Darwin 21.6.0
.....snipped....
% time gh --version
gh version 2.21.2 (2023-01-03)
https://github.com/cli/cli/releases/tag/v2.21.2
gh --version  0.05s user 0.01s system 0% cpu 30.057 total

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions