--exact results in not finding package even when exact is installed
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
Expected behavior
I expect a single item to be returned as is without "--exact"
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
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:
Get-WinGetPackage's-Exactoption doesn't function (#4561), similarity score: 0.78
Closed similar issues:
- Issue with --exact feature not working as expected (#4503), similarity score: 0.79
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
@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 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]
@denlon any idea how to resolve multiple correlations?