microsoft / microsoft/winget-cli

Always install a Powershell upgrade as last

Open
#2,809 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description of the new feature / enhancement

When winget upgrade --all is executed, the process can be terminated halfway if the package Microsoft.Powershell (or its equals) is updated.

It would be a nice feature to always execute this upgrade as last. This way, the upgrade process isn't terminated halfway.

Proposed technical implementation details

Add a custom sort.

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 by locating the code path for winget upgrade --all and the sorting of packages. Trace how Microsoft.Powershell upgrades are identified, then determine where a custom ordering belongs. Done means the PowerShell upgrade is executed last and coverage verifies the ordering.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, powershell
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.