github / github/copilot-cli

winget install github.copilot installs PowerShell even when PowerShell Preview is installed

Open
#3,240 1 comment 0 reactions 0 assignees View on GitHub
area:installation area:platform-windows
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the bug

When installing GitHub Copilot CLI with `winget`, running `winget install github.copilot` installs `microsoft.powershell` even when `microsoft.powershell.preview` with a newer version of PowerShell is installed and available.

### Affected version

1.0.44

### Steps to reproduce the behavior

1. Install PowerShell preview on Windows with `winget install Microsoft.PowerShell.Preview`
2. Install GitHub Copilot CLI with `winget install github.copilot`

### Expected behavior

The installer sees `Microsoft.PowerShell.Preview` and uses that, instead of also installing the GA `Microsoft.PowerShell`.

### Additional context

This is fundamentally an issue in the WinGet schema, which needs OR options.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.