microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.22k stars 1.45k forks source link

winget instal does not detect package is ambiguous #3602

Closed cverbiest closed 1 year ago

cverbiest commented 1 year ago

Brief description of your issue

winget instal does not detect package is ambiguous, it offers to install the first matching package

Steps to reproduce

winget install fluent

Expected behavior

I expect behaviour similar to what you get with winget install git Multiple packages found matching input criteria. Please refine the input. Name Id Source

My Git 9NLVK2SL2SSP msstore Git Git.Git winget

winget install fluent Multiple packages found matching input criteria. Please refine the input. Name Id Source

Fluent Flyouts Battery (Preview) [9NWXR2MKSNX7] msstore Fluent Screen Recorder xxxxxxxxxxxxxxxxx Fluent HN
Fluent Tic-Tac-Toe

Actual behavior

winget install fluent Found Fluent Flyouts Battery (Preview) [9NWXR2MKSNX7] Version Unknown This package is provided through Microsoft Store. winget may need to acquire the package from Microsoft Store on behalf of the current user. Agreements for Fluent Flyouts Battery (Preview) [9NWXR2MKSNX7] Version Unknown

Environment

Windows Package Manager v1.5.2201
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19044.3086
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.2201.0
denelon commented 1 year ago

Which package would you have expected to install?

winget search fluent
Name                             Id                              Version     Match              Source
-------------------------------------------------------------------------------------------------------
Fluent Terminal                  9P2KRLMFXF9T                    Unknown                        msstore
Fluent Search                    9NK1HLWHNP8S                    Unknown                        msstore
Fluent Video Player              9P0JWPR9VN80                    Unknown                        msstore
Fluent Screen Recorder           9MWV79XLFQH7                    Unknown                        msstore
Fluent Flyouts Battery (Preview) 9NWXR2MKSNX7                    Unknown                        msstore
Fluent Sticky Notes              9PK6R3QT7G6B                    Unknown                        msstore
Fluent Emoji Gallery             9N965R0G2SND                    Unknown                        msstore
Fluent Translator X              9N06KCVCQZZK                    Unknown                        msstore
Fluent Ink Board                 9NXM0GZRP5D7                    Unknown                        msstore
Fluent Flowchart                 9NV5SZHNPR0B                    Unknown                        msstore
Password Wallet Sync Fluent      9ND2RVC55331                    Unknown                        msstore
Fluent Editor                    XPDDZSQ57XQ0WG                  Unknown                        msstore
Fluent XAML Theme Editor         9N2XD3Q8X57C                    Unknown                        msstore
Fluent rooler demo               9NTSZW9K2KG7                    Unknown                        msstore
FluentCast                       9PM46JRSDQQR                    Unknown                        msstore
FluentWeather                    9PFD136M8457                    Unknown                        msstore
Fluent Reader                    yang991178.fluent-reader        1.1.3                          winget
Listen1 Fluent                   listen1.listen1.fluent          2.17.1                         winget
Fluent Search Beta               BlastApps.FluentSearch          0.9.91.9995                    winget
Td-agent                         TreasureData.TDAgent            4.3.0       Tag: fluentd       winget
ModernFlyouts (Preview)          ModernFlyouts.ModernFlyouts     0.9.3.0     Tag: fluent-design winget
Xplorer                          JustinMaximillianKimlim.Xplorer 0.3.1       Tag: fluent-design winget
Notepads                         JackieLiu.NotepadsApp           1.4.9.0     Tag: fluent-design winget

The search algorithm for the "msstore" source will try to find a "best match" and offer that back. Since there is no "best match" in the default "winget" source, the one chosen by the "msstore" source is defaulted. If there had been a package in the "winget" source with the exact name or moniker, you would have seen the disambiguation message.

microsoft-github-policy-service[bot] commented 1 year ago

Hello @cverbiest,

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

Template: msftbot/noRecentActivity