编程技术网

关注微信公众号,定时推送前沿、专业、深度的编程技术资料。

 找回密码
 立即注册

QQ登录

只需一步,快速开始

极客时间

packages 升级后出现多个同名软件包:Multiple same name packages appeared right after the pac

作者: pierre-unity 2022-5-12 16:15:01 显示全部楼层 |阅读模式

Multiple same name packages appeared right after the package upgrade

Brief description of your issue

我刚刚升级了一个软件包,最终得到了多个 packages 的不同版本

Steps to reproduce

type winget upgrade Microsoft.SQLServerManagementStudio and then type winget upgrade

Expected behavior

no result should include Microsoft.SQLServerManagementStudio

Actual behavior
Name                                   Id                                     Version        Available      Source
------------------------------------------------------------------------------------------------------------------
Microsoft SQL Server Management Studio Microsoft.SQLServerManagementStudio    2.3.28307      15.0.18410.0   winget
Microsoft SQL Server Management Studio Microsoft.SQLServerManagementStudio    12.0.40664.0   15.0.18410.0   winget
Microsoft SQL Server Management Studio Microsoft.SQLServerManagementStudio    1.36.1         15.0.18410.0   winget
Microsoft SQL Server Management Studio Microsoft.SQLServerManagementStudio    14.29.30133.0  15.0.18410.0   winget
Microsoft SQL Server Management Studio Microsoft.SQLServerManagementStudio    14.29.30133.0  15.0.18410.0   winget
Microsoft SQL Server Management Studio Microsoft.SQLServerManagementStudio    1.35.0         15.0.18410.0   winget
Microsoft SQL Server Management Studio Microsoft.SQLServerManagementStudio    11.4.7462.6    15.0.18410.0   winget
Microsoft SQL Server Management Studio Microsoft.SQLServerManagementStudio    12.0.40664.0   15.0.18410.0   winget
Environment
Windows Package Manager (Preview) v1.3.1251-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.613
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.1251.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
该问题来自:microsoft/winget-cli/issues/2152 , 试试查看该项目更多issue.

问题解答

hasansalimkanm 2022-5-12 16:48:06 显示全部楼层

与#2137

cc @johnmcpms#2137(注释)

Erriez 2022-5-12 17:14:49 显示全部楼层

在一定程度上,Microsoft SQL Server Management Studio允许并排安装主要版本,而不仅仅是升级现有版本。如果默认升级行为是“无效的”,我当然可以看到保留连接字符串的挑战。

Sibtain Reza 2022-5-12 18:09:08 显示全部楼层

I suggested on the PR that we should just use the local name for list because of how they are using this in the manifest. There are still going to be ... issues ... with targeting these for uninstall, but at least list won't be confusing.

此外,它确实支持SXS安装,因此这将是增加对SXS和多组件软件包的支持的有趣案例。

腾讯云服务器 阿里云服务器
腾讯云服务器 腾讯云服务器
关注微信
^