microsoft / microsoft/winget-cli
Ability to sequence upgrades
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Scenario
When I run winget upgrade --all, upgrades are sequenced in a seemingly random order. This can mean that many packages that have a quick upgrade experience (CLIs, small dev tools) have to wait on upgrades that can take an hour or so either because of long install time (IDEs like Visual Studio, JetBrains) or long download time (in case of 1GB+ installer).
Proposal
- As a user it would help if I can specify a preference list in user settings for packages that should be upgraded first and packages that should be upgraded last. The CLI can then see the two lists and sequence the upgrade available packages accordingly. Something like:
"upgradeSequencePreference": {
"upgradeFirst": [
"Git.Git",
"junegunn.fzf",
"JanDeDobbeleer.OhMyPosh"
],
"upgradeLast": [
"Microsoft.VisualStudio.2022.Community",
"JetBrains.dotUltimate"
]
}
The packages that aren't in either list would be determined by the same random order as they are right now.
- For packages that have a long download time, could it be possible that validation pipelines collect file size information and populate it in the index. The CLI can then implicitly sequence those packages to be upgraded last
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 upgrade --all command, then review how user settings and package ordering are represented. The proposal covers both explicit first/last preference lists and download-size-based ordering through validation pipelines and the index. Done means the sequencing behavior and configuration are defined and implemented for both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100