Repository navigation
Open
Labels
Command-PinIssue related to WinGet PinIssue-BugIt either shouldn't be doing this or needs an investigation.
Description
Brief description of your issue
I am used to use package ID as the sole positional parameter for winget subcommands to specify the package I want to act on. For example, winget install Discord.Discord installs the package with that ID, winget uninstall Discord.Discord uninstalls it and winget list Discord.Discord lists the packages with that ID I have installed.
winget pin list is an outlier here, it does not seem to use the package ID parameter for anything.
Steps to reproduce
Precondition: Have some packages pinned. In my case have these:
> winget pin list
Name Id Version Source Pin type
----------------------------------------------------------------------------------------------------
Visual Studio Professional 2019 Microsoft.VisualStudio.2019.Professional 16.11.17 winget Gating
PowerShell 7-x64 Microsoft.PowerShell 7.2.1.0 winget Gating
CMake Kitware.CMake 3.22.2 winget Gating
VMware Workstation VMware.WorkstationPro 16.2.5 winget Blocking
Teams Machine-Wide Installer Microsoft.Teams 1.4.0.22472 winget Pinning
Discord Discord.Discord 1.0.9025 winget Pinning
- Try to check pin status of Discord with
winget pin list Discord.Discord
Expected behavior
See only pins for packages with ID Discord.Discord.
Actual behavior
I see all pinned packages:
> winget pin list Discord.Discord
Name Id Version Source Pin type
----------------------------------------------------------------------------------------------------
Visual Studio Professional 2019 Microsoft.VisualStudio.2019.Professional 16.11.17 winget Gating
PowerShell 7-x64 Microsoft.PowerShell 7.2.1.0 winget Gating
CMake Kitware.CMake 3.22.2 winget Gating
VMware Workstation VMware.WorkstationPro 16.2.5 winget Blocking
Teams Machine-Wide Installer Microsoft.Teams 1.4.0.22472 winget Pinning
Discord Discord.Discord 1.0.9025 winget Pinning
Environment
> winget --info
Windows Package Manager v1.7.10861
Windows: Windows.Desktop v10.0.22631.3374
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10861.0
Reacted by Muhammad Danish
Metadata
Metadata
Assignees
Labels
Command-PinIssue related to WinGet PinIssue-BugIt either shouldn't be doing this or needs an investigation.
Activity
github-actions commentedon Apr 2, 2024
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!
Open similar issues:
winget pin addcan't find packages found bywinget listif ID is an UUID (#3991), similarity score: 0.79--idflag (#4163), similarity score: 0.75otto-liljalaakso-nt commentedon Apr 2, 2024
Hi bot! As far as I can see, none of these are duplicates:
winget pin addcan't find packages found bywinget listif ID is an UUID #3991 is about Ids in UUID format, and explicitly says string IDs are not in scope. This one happens for string IDs.--idflag #4163 is about pinning uninstalled packages. This one is about pinning an installed package.mdanish-kh commentedon Apr 2, 2024
[Policy] Issue-Bug
[Policy] Command-Pin