Skip to content

fix(github-cli): fix ensure_gh_extension_list_wrapper always creating gh wrapper - #1733

Draft
Ryosuke Hiroe (rhiroe) wants to merge 2 commits into
devcontainers:mainfrom
rhiroe:fix/github-cli-extension-list-wrapper-check
Draft

Ryosuke Hiroe (rhiroe) wants to merge 2 commits into
devcontainers:mainfrom
rhiroe:fix/github-cli-extension-list-wrapper-check

Conversation

@rhiroe

Copy link
Copy Markdown
Contributor

The check stripped GH_TOKEN along with the other auth env vars before running gh extension list, but gh CLI requires some token to be present just to run the extension subcommands, regardless of whether listing local extensions actually needs auth. With no token and a fresh empty GH_CONFIG_DIR, the check could never succeed, so the /usr/local/bin/gh wrapper was installed unconditionally instead of only when real gh actually fails to see the extensions.

… gh wrapper

The check stripped GH_TOKEN along with the other auth env vars before
running `gh extension list`, but gh CLI requires some token to be
present just to run the extension subcommands, regardless of whether
listing local extensions actually needs auth. With no token and a
fresh empty GH_CONFIG_DIR, the check could never succeed, so the
/usr/local/bin/gh wrapper was installed unconditionally instead of
only when real gh actually fails to see the extensions.
@rhiroe
Ryosuke Hiroe (rhiroe) requested a review from a team as a code owner September 9, 2026 04:21

@v-Kaniska244 Kaniska (v-Kaniska244) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Ryosuke Hiroe (@rhiroe)

Thank you for the contribution. Would you please bump the feature version for this change.

@rhiroe
Ryosuke Hiroe (rhiroe) marked this pull request as draft September 18, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants