microsoft / microsoft/winget-cli
Always install a Powershell upgrade as last
Open
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
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 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