Open MrHinsh opened 4 months ago
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!
Get-WinGetPackage
's -Exact
option doesn't function (#4561), similarity score: 0.78Note: 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
?
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