Skip to content

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

Open

Description

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

Activity

  1. github-actions commented on Jul 12, 2024

    @github-actions
  2. denelon commented on Jul 12, 2024

    @denelon
    Collaborator

    Martin Hinshelwood nkdAgility.com (@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.

  3. added
    Issue-Bug
    Command-List
    Needs-Author-Feedback
    on Jul 12, 2024
  4. MrHinsh commented on Jul 25, 2024

    @MrHinsh
    Author

    Demitrius Nelon (@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]

  5. added
    Needs-Attention
    and removed
    No-Recent-Activity
    Needs-Author-Feedback
    on Jul 25, 2024
  6. removed
    Needs-Attention
    on Jul 26, 2024
  7. MrHinsh commented on Sep 8, 2024

    @MrHinsh
    Author

    denlon any idea how to resolve multiple correlations?

    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-ListIssue-Bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions