microsoft / microsoft/winget-cli
winget install: If a single download fails or a paket was renamed, all following installs are skipped, even with --force
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
If a packet in the list you provide to winget install fails to download or does not exist (anymore), all further installs are aborted, even if we add --force to it. likely this also happens when an install fails (did not test)
It seems that the similar issue for winget update ahs been fixed in 1.3, but not for install
https://github.com/microsoft/winget-cli/issues/2266
Steps to reproduce
Currently, the manifest of MPC-HC is broken (and has been for days) and this causes mpc-hc being not installed, obviously.
pick a tool you do not have installed TOOLNAME
use
winget install mpc-hc TOOLNAME
winget install sdfkjsldf TOOLNAME
Expected behavior
Installation of TOOLNAME succeds and issues with mpc-hc/sdfkjsldf are reported by winget in the summary
Actual behavior
both will fail
Environment
Windows: Windows.Desktop v10.0.19044.4529
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.23.1791.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
Start by reproducing the behavior with winget install mpc-hc TOOLNAME or winget install sdfkjsldf TOOLNAME, using the environment details in the issue. Compare the install flow with issue #2266 and verify that a failed or missing package is reported in the summary while later packages still install, including with --force.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100