microsoft / microsoft/winget-cli
winget search with empty query results in a 'No packages found' error for msstore source
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
According to docs https://learn.microsoft.com/en-us/windows/package-manager/winget/search#show-all
using winget search "" --source msstore should return list of all available to install packages from msstore source, but it returns No package found matching input criteria.
It works only when application name is provided, as in example in docs winget search “Visual Studio Code” -s msstore
Without --source param it returns the same list of apps as with winget search "" --source winget
Steps to reproduce
run winget search "" --source msstore
Expected behavior
winget search -q "" should return all packages from all sources
winget search -q "" -s msstore should return all packages from msstore source
Actual behavior
winget search -q "" returns only winget apps
winget search -q "" -s msstore returns no package found
Environment
Windows Package Manager v1.4.10173
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19045.2546
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing winget search -q "" and winget search -q "" -s msstore on the reported environment, then trace the CLI search handling for an empty query and the msstore source. Done means an empty query returns packages from all selected sources, including msstore, instead of reporting no packages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100