Skip to content

gh failure in pwsh, git shell, cmd #6147

@riclas

Description

@riclas

Hello.

On windows:
Installed Git Shell
Installed gh

running any gh command on git shell (or native powershell for that matter) will produce:
panic: interface conversion: *colorable.Writer is not terminal.FileWriter: missing method Fd

goroutine 1 [running]:
github.com/cli/cli/v2/internal/prompter.New(...)
/home/runner/work/cli/cli/internal/prompter/prompter.go:29
github.com/cli/cli/v2/pkg/cmd/factory.newPrompter(0xc0003a42a0)
/home/runner/work/cli/cli/pkg/cmd/factory/default.go:117 +0xac
github.com/cli/cli/v2/pkg/cmd/factory.New({0x21ecfbc, 0x6})
/home/runner/work/cli/cli/pkg/cmd/factory/default.go:36 +0x1cf
main.mainRun()
/home/runner/work/cli/cli/cmd/gh/main.go:64 +0x108
main.main()
/home/runner/work/cli/cli/cmd/gh/main.go:48 +0x19

installed windows terminal and git as a workaround

Metadata

Metadata

Assignees

No one assigned

    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