Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

winget pin list does not recognize package ID parameter #4340

Open
otto-liljalaakso-nt opened this issue Apr 2, 2024 · 3 comments
Open

winget pin list does not recognize package ID parameter #4340

otto-liljalaakso-nt opened this issue Apr 2, 2024 · 3 comments
Labels
Command-Pin Issue related to WinGet Pin Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@otto-liljalaakso-nt
Copy link

otto-liljalaakso-nt commented Apr 2, 2024

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
  1. 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
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Apr 2, 2024
Copy link

github-actions bot commented 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:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@otto-liljalaakso-nt
Copy link
Author

Hi bot! As far as I can see, none of these are duplicates:

@mdanish-kh
Copy link
Contributor

[Policy] Issue-Bug
[Policy] Command-Pin

@microsoft-github-policy-service microsoft-github-policy-service bot added Command-Pin Issue related to WinGet Pin Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-Pin Issue related to WinGet Pin Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

2 participants