microsoft / microsoft/winget-cli
Winget does not install all some updates
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
Winget currently lists Chrome update and 2 vsredist updates however when I try running winget upgrade --all it will only install 1 package (one of vsredists), report success and then show that nothing was actually upgraded
Steps to reproduce
winget upgrade --all --verbose
Name Id Version Available Source
------------------------------------------------------------------------------------------------------------------------------------
Google Chrome Google.Chrome 115.0.5790.170 115.0.5790.171 winget
Microsoft Visual C++ 2010 x86 Redistributable - 10.0.30319 Microsoft.VCRedist.2010.x86 10.0.30319 10.0.40219 winget
Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.34.31931 Microsoft.VCRedist.2015+.x86 14.34.31931.0 14.36.32532.0 winget
3 upgrades available.
2 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
(1/1) Found Microsoft Visual C++ 2015-2022 Redistributable (x86) [Microsoft.VCRedist.2015+.x86] Version 14.36.32532.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://download.visualstudio.microsoft.com/download/pr/eaab1f82-787d-4fd7-8c73-f782341a0c63/5365A927487945ECB040E143EA770ADBB296074ECE402
1B1D14213BDE538C490/VC_redist.x86.exe
██████████████████████████████ 13.1 MB / 13.1 MB
Successfully verified installer hash
Starting package install...
Successfully installed
6 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
winget upgrade
Expected behavior
All 3 packages are upgraded and all are recognized as updated
Actual behavior
Only 1 package is upgraded and then nothing is recognized as updated:
Name Id Version Available Source
------------------------------------------------------------------------------------------------------------------------------------
Google Chrome Google.Chrome 115.0.5790.170 115.0.5790.171 winget
Microsoft Visual C++ 2010 x86 Redistributable - 10.0.30319 Microsoft.VCRedist.2010.x86 10.0.30319 10.0.40219 winget
Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.34.31931 Microsoft.VCRedist.2015+.x86 14.34.31931.0 14.36.32532.0 winget
3 upgrades available.
2 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
Environment
Windows Package Manager v1.5.1881
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22621.1992
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.1881.0
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
No source files or tests are named. Reproduce the behavior with winget upgrade --all --verbose and winget upgrade, then trace the upgrade flow for the three listed packages. Done means all three packages install successfully and a subsequent upgrade check recognizes them as updated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100