ScoopInstaller / Main

📦 The default bucket for Scoop.
https://scoop.sh
The Unlicense
1.58k stars 946 forks source link

winget autoupdate is broken #3719

Closed danx12 closed 2 years ago

danx12 commented 2 years ago

Scoop Configuration

//# Your configuration here

scoop won't install older versions of winget

PS C:\> scoop install winget@1.3.1611
WARN  Given version (1.3.1611) does not match manifest (1.3.1741)
WARN  Attempting to generate manifest for 'winget' (1.3.1611)
Autoupdating winget
Searching hash for Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle in https://github.com/microsoft/winget-cli/releases/download/v1.3.1611$matchPre/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.txt
Der Remoteserver hat einen Fehler zurückgegeben: (404) Nicht gefunden.
URL https://github.com/microsoft/winget-cli/releases/download/v1.3.1611$matchPre/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.txt is not valid
Could not find hash in https://github.com/microsoft/winget-cli/releases/download/v1.3.1611$matchPre/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.txt
Downloading Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle to compute hashes!
Der Remoteserver hat einen Fehler zurückgegeben: (404) Nicht gefunden.
URL https://github.com/microsoft/winget-cli/releases/download/v1.3.1611$matchPre/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle#/dl.7z is not valid
Could not install winget@1.3.1611
tech189 commented 2 years ago

Unfortunately, this is because that release's version number has an extra '.' at the beginning: v.1.3.1611. We can't change the current autoupdate to include the extra '.' because it fails with every other version. As a workaround you could install it by using the old manifest: scoop install https://raw.githubusercontent.com/ScoopInstaller/Main/981b6923ef3bf192caaba3e98566a52ae583ed8c/bucket/winget.json

rasa commented 2 years ago

See also https://github.com/ScoopInstaller/Main/pull/3669

rashil2000 commented 2 years ago

Fixed https://github.com/ScoopInstaller/Main/commit/78abcfbc62c2efee9e794374094f2b2d144b45e3