microsoft / microsoft/winget-cli
Add option to install only packages with unknown version (replace them with winget version)
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Description of the new feature / enhancement
I see these options:
--all Update all installed packages to latest if available
--include-unknown Upgrade packages even if their current version cannot be determined
but not an option
--only-unknown Upgrade packages when their current version cannot be determined
that I could combine with --all (or with some selection filter)
Proposed technical implementation details
I would like to have an option where for security concerns I'd like to replace packages with unknown version with their winget versions.
Also when doing list I'd like an option that shows only packages with unknown versions, not sure if there's such option currently (guess the above one would do when combined with "-list")
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 tracing the existing --include-unknown and --all option handling, then inspect how list selection filters packages whose versions are unknown. Done means an --only-unknown option can be combined with --all or another selection filter and can show only unknown-version packages in list output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100