microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.92k stars 1.42k forks source link

winget install: If a single download fails or a paket was renamed, all following installs are skipped, even with --force #4615

Open JustMyGithub opened 2 months ago

JustMyGithub commented 2 months ago

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
Trenly commented 1 month ago

@denelon - I don't believe this is a bug based on

JustMyGithub commented 1 month ago

@Trenly @denelon 2998 is about not found only, this is about not found or found but disfunctional