microsoft / microsoft/winget-cli

winget pin won't pin packages with unknown version

Open
#3,965 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

winget pin will not recognize or add packages which have an unknown version

Steps to reproduce

C:\Users\derri>winget add pin Lounge Lizard Session 4
No package found matching input criteria.
Package not found: Lounge
Multiple packages found matching input criteria. Please refine the input.
Name Id Source

Session Keeper 9NBLGGH2RVQZ msstore
Session Oxen.Session winget
Multiple packages found for: Session

Expected behavior

would expect these and other packages with similar statuses to be added to the pin list. Maybe this should be a feature request to exclude these packages from upgrades

Actual behavior

does not pin packages with unknown versions

Environment
Windows Package Manager v1.6.3133
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.2792
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3133.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the winget pin command and reproduce the provided Lounge Lizard Session 4 input on the stated WinGet version. Trace how packages with unknown versions are handled, then verify that the intended pinning or upgrade-exclusion behavior is defined and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.