Closed samedder closed 1 year ago
winget show <package>
displays metadata for the package to be installed if only one "best match" is available based on sources. The current behavior for the "msstore" source tries to return the "best match", so it's best to search first.
winget search <package>
displays the list of packages to help a user determine what is available.
Google.Chrome doesn't have a "moniker" of "chrome" so it doesn't get selected as a best match for disambiguation.
Is the suggestion then for package maintainers to try and obtain a reasonable set of "common" monikers for their package?
Brief description of your issue
It seems that in general the default search and install behavior is vulnerable to tag squatting. For example, when searching for "chrome" it's plausible the user wants Google.Chrome.Dev Google.Chrome, but instead XP890QTFL1X0D0 from mstore or Dichromate.Browser is returned.
Steps to reproduce
From pwsh:
Expected behavior
Install
Google.Chrome
from wingetActual behavior
Environment