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

--exact results in not finding package even when exact is installed

Open MrHinsh opened this issue 1 year ago • 3 comments

Brief description of your issue

If I use "--exact" then no packages are returned even though I am using the exact string for the ID.

Steps to reproduce

winget install nkdAgility.AzureDevOpsMigrationTools.Preview winget list nkdAgility.AzureDevOpsMigrationTools.Preview --exact

image

Expected behavior

I expect a single item to be returned as is without "--exact"

image

Actual behavior

No items are returend

Environment

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

Windows: Windows.Desktop v10.0.22635.3858
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1791.0

Winget Directories
---------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalSt…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalSt…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

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

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Enabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Enabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

MrHinsh avatar Jul 12 '24 12:07 MrHinsh

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar Jul 12 '24 12:07 github-actions[bot]

@MrHinsh,

If you run: winget list --id nkdAgility.AzureDevOpsMigrationTools.Preview --exact do you get one result?

Can you run winget list nkdAgility.AzureDevOpsMigrationTools.Preview --exact --verbose-logs --logs and share the log file?

I tested using "Microsoft.PowerShell" on my device and saw only one result without specifying "--id", but I'm trying to narrow down exactly what's happening in the issue you're reporting.

denelon avatar Jul 12 '24 15:07 denelon

@denelon for winget list --id nkdAgility.AzureDevOpsMigrationTools.Preview --exact I get "No installed package found matching input criteria."

WinGet-2024-07-25-14-09-15.607.log

2024-07-25 14:09:16.709 [YAML] Detected UTF-8
2024-07-25 14:09:16.761 [REPO] Performing search: Query:[none] Filter:Id='nkdAgility.AzureDevOpsMigrationTools.Preview'[CaseInsensitive]
2024-07-25 14:09:16.762 [REPO] Finding installed package from available package using system reference search: Query:[none] Include:NormalizedNameAndPublisher='azuredevopsmigrationtools'+'nakedagilitywithmartinhinshelwood'[Exact]
2024-07-25 14:09:16.762 [REPO] Performing search: Query:[none] Include:NormalizedNameAndPublisher='azuredevopsmigrationtools'+'nakedagilitywithmartinhinshelwood'[Exact]
2024-07-25 14:09:16.762 [REPO] Performing search: Query:[none] Include:ProductCode='nkdagility.azuredevopsmigrationtools.preview_microsoft.winget.source_8wekyb3d8bbwe'[Exact] Include:NormalizedNameAndPublisher='azuredevopsmigrationtools'+'nakedagilitywithmartinhinshelwood'[Exact]
2024-07-25 14:09:16.763 [REPO]  ... installed package [ARP\User\X64\nkdAgility.AzureDevOpsMigrationTools.Preview_Microsoft.Winget.Source_8wekyb3d8bbwe] had multiple correlations and is being ignored as a match for [nkdAgility.AzureDevOpsMigrationTools.Preview]
2024-07-25 14:09:16.763 [CLI ] Search result size: 0
2024-07-25 14:09:16.763 [CLI ] No app found matching input criteria
2024-07-25 14:09:16.767 [CLI ] Terminating context: 0x8a150014 at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\WorkflowBase.cpp:3e5

I assume the issue is in installed package [ARP\User\X64\nkdAgility.AzureDevOpsMigrationTools.Preview_Microsoft.Winget.Source_8wekyb3d8bbwe] had multiple correlations and is being ignored as a match for [nkdAgility.AzureDevOpsMigrationTools.Preview]

MrHinsh avatar Jul 25 '24 13:07 MrHinsh

@denlon any idea how to resolve multiple correlations?

image

MrHinsh avatar Sep 08 '24 08:09 MrHinsh