winget pin list
does not recognize package ID parameter
#4340
Labels
Command-Pin
Issue related to WinGet Pin
Issue-Bug
It either shouldn't be doing this or needs an investigation.
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 andwinget 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 Discord.Discord
Expected behavior
See only pins for packages with ID
Discord.Discord
.Actual behavior
I see all pinned packages:
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
The text was updated successfully, but these errors were encountered: