Skip to content

gh extension list is very slow #4220

@waldyrious

Description

@waldyrious

Describe the bug

Listing the installed extensions seems to be extremely slow.

Steps to reproduce the behavior

$ time gh extension list
gh branch          mislav/gh-branch              
gh clean-branches  davidraviv/gh-clean-branches  
gh clone-org       matt-bartel/gh-clone-org      
gh user-stars      korosuke613/gh-user-stars     

real	0m8,439s
user	0m0,204s
sys	0m0,080s

I can replicate this multiple times.

Expected vs actual behavior

Since the extensions are installed locally, I'd expect the listing of installed extensions to be very fast, e.g.

$ time ls -1 /home/waldyrious/.local/share/gh/extensions/
gh-branch
gh-clean-branches
gh-clone-org
gh-user-stars

real	0m0,001s
user	0m0,001s
sys	0m0,000s

Maybe there should be a command-line option to toggle whatever slow step is taking place when listing the extensions?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority-2Affects more than a few users but doesn't prevent core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions