SQL Developer 2025 - "--include-unknown" installs another instance

未关闭
#6,602 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
43/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp
领域
backend, cli

调研方向

Start by reproducing the issue with SQL Server 2025 Developer installed, then compare the output of winget update --include-unknown and winget update --all --include-unknown. The report identifies package version detection and repeated installation as the failure, but names no source files or tests, so trace how WinGet identifies installed package versions and find the relevant tests. Done means the installed version is recognized and repeated updates do not create another SQL Server instance.

由索引模型根据 Issue 内容生成。

描述

Issue-Bug
Relevant area(s)

WinGet CLI

Relevant command(s)

No response

Brief description of your issue

SQL Server 2025 Developer is already installed on the PC.

When doing a "winget update all --include-unknown" switch, it downloads and starts another installation of SQL 2025 Developer, so another instance is created. This happens every time you run the update with the switch.

If you do a "winget update --include-unknown", it shows UNKNOWN for the installed SQL 2025 version.

Steps to reproduce

Install SQL Server 2025 Developer (either downloaded or through Winget)
Run "winget update --include-unknown" and you'll see a number of ODBC and other connection updates. SQL Server 2025 will show "UNKNOWN" for installed version.
Run "winget update --all --include-unknown" and another SQL server instance is installed with all available updates.
Once done, run "winget update --include-unknown" and it shows no updates are available, but SQL server 2005 will show "UNKNOWN" version.
Run "winget update --all --include-unknown" again, and another SQL server instance is installed.

Expected behavior

Not another installation of SQL server and another instance.

Actual behavior

SQL Server Developer 2025 version isn't seen by Winget, so whenever --include-unknown is used, another instance is installed.

Environment
Winget: v1.29.380
Windows: Windows 11 - 10.0.26300 Build 26300
Package: Microsoft.SQLServer.2025.Developer 17.0.1000.7
主要语言
C++
星标
26.6k
派生
1.8k
平均合并
3 天 10 小时
30 天内合并 PR
41

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/winget-cli 的其他 Issue

查看 microsoft/winget-cli 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

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