winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Reference to strange package when searching for "."

Open heppth opened this issue 3 years ago • 3 comments
trafficstars

Brief description of your issue

I wanted to install a locally created package and accidentally entered winget install . (instead of winget install -m .). Then the winget package manager started the installation of a strange Chinese package.

Steps to reproduce

Enter winget show .

Expected behavior

There should be no package listed under the "." label/moniker. If so, it should have something to do with a dot.

Actual behavior

The dot character seems to be the moniker to a strange package.

Environment

Windows-Paket-Manager (Vorschau) v1.3.692-preview
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Windows: Windows.Desktop v10.0.19043.1645
Paket: Microsoft.DesktopAppInstaller v1.18.692.0

heppth avatar May 03 '22 07:05 heppth

Would you be able to share a screenshot?

When I do winget install . or winget show . it's related to an application called .NET Developer from Microsoft Store: image

ItzLevvie avatar May 03 '22 11:05 ItzLevvie

winget-screenshot

heppth avatar May 03 '22 11:05 heppth

The "show" command and the "install" command use similar logic attempting to find a "best match". In this case it's the first search result returned by the "msstore" Microsoft Store search. We have work to do on the search behavior for the "msstore" source.

denelon avatar May 03 '22 14:05 denelon