github / github/copilot-cli

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

未关闭
#3,240 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:installation area:platform-windows
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### 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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。