microsoft / microsoft/winget-cli
WinGet doesn't include PackageName from non-default locales for searching
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
While searching through PackageNames, WinGet only uses ones from default locale, and those from non-default locales will be ignored.
Steps to reproduce
Use Nutstore.Nutstore as an example, which has different PackageName in different locales. (Nutstore in en-US and 坚果云 in zh-CN)
Manifest: https://github.com/microsoft/winget-pkgs/tree/master/manifests/n/Nutstore/Nutstore/6.2.7
- Run
winget search Nutstore, which returnsNutstore.Nutstore. - Run
winget search 坚果云, which doesn't returnNutstore.Nutstore.
Expected behavior
WinGet should returns Nutstore.Nutstore in results.
❯ winget search 坚果云
名称 ID 版本 匹配 源
----------------------------------------------------------------------
坚果云 Nutstore.Nutstore 6.2.7 winget
Nutstore LightApp Nutstore.NutstoreLightApp 2.0.3 Tag: 坚果云 winget
The PackageName in the result shoule follow the locale as well.
Actual behavior
WinGet didn't return Nutstore.Nutstore in results.
❯ winget search 坚果云
名称 ID 版本 匹配 源
--------------------------------------------------------------------
Nutstore LightApp Nutstore.NutstoreLightApp 2.0.3 Tag: 坚果云 winget
Environment
Windows 程序包管理器(预览) v1.4.2161-preview
版权所有 (C) Microsoft Corporation。保留所有权利。
Windows: Windows.Desktop v10.0.22621.754
系统体系结构: X64
程序包: Microsoft.DesktopAppInstaller v1.19.2161.0
日志: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
链接
----------------------------------------------------------------------------
隐私声明 https://aka.ms/winget-privacy
许可协议 https://aka.ms/winget-license
第三方声明 https://aka.ms/winget-3rdPartyNotice
主页 https://aka.ms/winget
Windows 应用商店条款 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
Reproduce the issue with winget search Nutstore and winget search 坚果云, using the linked Nutstore manifest to compare its locale-specific PackageName values. Trace how search results are built and verify that the non-default locale name is searchable and displayed according to the active locale, without regressing the existing result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, localization, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100