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

Ability to sequence upgrades #4877

Open
mdanish-kh opened this issue Oct 13, 2024 · 0 comments
Open

Ability to sequence upgrades #4877

mdanish-kh opened this issue Oct 13, 2024 · 0 comments
Labels
Issue-Feature This is a feature request for the Windows Package Manager client.

Comments

@mdanish-kh
Copy link
Contributor

mdanish-kh commented Oct 13, 2024

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

  1. 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.

  1. 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
@mdanish-kh mdanish-kh added the Issue-Feature This is a feature request for the Windows Package Manager client. label Oct 13, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Oct 13, 2024
@denelon denelon removed the Needs-Triage Issue need to be triaged label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
None yet
Development

No branches or pull requests

2 participants