microsoft / microsoft/winget-cli
Pin By ID misbehaves
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
Probably related to #2966
Tried to pin MS Teams, but it said package was not found. Ran winget list Teams and saw:
PS C:\git\winget-pkgs> winget list Teams
Name Id Version Available Source
---------------------------------------------------------------------------
Microsoft Teams Microsoft.Teams 1.6.00.1381 winget
Teams Machine-Wide Installer Microsoft.Teams 1.5.0.8070 1.6.00.376 winget
Tried to use --name and --id to specify the package, but it found the one from MS Store
Steps to reproduce
Install teams, try to pin with winget pin add --name "Microsoft Teams" --id "Microsoft.Teams" --blocking
Expected behavior
Found Microsoft Teams [Microsoft.Teams]
Pin added successfully
Actual behavior
Found Microsoft Teams [XP8BT8DW290MPQ]
Pin added successfully
Environment
PS C:\git\winget-pkgs> winget --info
Windows Package Manager (Preview) v1.5.441-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19045.2486
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.441.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
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
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 pin add --name "Microsoft Teams" --id "Microsoft.Teams" --blocking on the reported Windows Package Manager version and trace the pin command's name-and-ID resolution. Done means the command selects Microsoft.Teams rather than the Microsoft Store package and reports the expected package identity.
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
- Clearly specified
- Newbie friendliness
- 35/100