ScoopInstaller / Extras

📦 The Extras bucket for Scoop.
https://scoop.sh
The Unlicense
1.8k stars 1.38k forks source link

[Bug]: linqpad hash check failures #12299

Closed ZzzZeta closed 11 months ago

ZzzZeta commented 11 months ago

Prerequisites

Package Name

linqpad

Expected/Current Behaviour

Steps to Reproduce

PS> scoop update linqpad
linqpad: 8.0.10 -> 8.0.13
Updating one outdated app:
Updating 'linqpad' (8.0.10 -> 8.0.13)
Downloading new version
LINQPad8.zip (38.2 MB) [==========================================================================================================================================================] 100%
Checking hash of LINQPad8.zip ... ERROR Hash check failed!
App:         extras/linqpad
URL:         https://linqpad.azureedge.net/public/LINQPad8.zip
First bytes: 50 4B 03 04 14 00 00 00
Expected:    47de1fe898996a1ab8b276382836ed837bf7c7204dc24c982325bcd6954748c2
Actual:      f3465ef065b0ec51b766d8a7c05ef652de176166ec28d25d3841f9f658b48e0a

Possible Solution

  1. The url in the LINQPad manifest should be manually updated between versions to https://linqpad.azureedge.net/public/LINQPad8.zip?cache=8.0.13.7691236 instead of https://linqpad.azureedge.net/public/LINQPad8.zip
  2. Alternatively, autoupdate.url should use https://www.linqpad.net/GetFile.aspx?LINQPad8.zip and Scoop should autogenerate final redirection url as https://linqpad.azureedge.net/public/LINQPad8.zip?cache=8.0.13.7691236.

    PS> curl -I "https://www.linqpad.net/GetFile.aspx?LINQPad8.zip"
    HTTP/1.1 302 Found
    Cache-Control: private
    Content-Length: 187
    Content-Type: text/html; charset=utf-8
    Location: https://linqpad.azureedge.net/public/LINQPad8.zip?cache=8.0.14.2915489

Scoop and Buckets Version

PS> scoop --version
Current Scoop version:
v0.3.1 - Released at 2022-11-15

'extras' bucket:
dbb4df8f8 (HEAD -> master, origin/master, origin/HEAD) twitchdownloader: Update to version 1.53.5

'games' bucket:
9c00781f (HEAD -> master, origin/master, origin/HEAD) yuzu-pineapple: Update to version EA-3987

'java' bucket:
54652ba7 (HEAD -> master, origin/master, origin/HEAD) temurin8-nightly-jre: Update to version 8.0.402-2.0.202311201855

'main' bucket:
f229c99c0 (HEAD -> master, origin/master, origin/HEAD) twitchdownloader-cli: Update to version 1.53.5

Scoop Config

PS> scoop config

last_update        : 11/22/2023 17:49:28
virustotal_api_key :
show_manifest      : True
aria2-enabled      : True
cat_style          : default
gh_token           :
scoop_repo         : https://github.com/ScoopInstaller/Scoop
scoop_branch       : master

PowerShell Version

PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.9
PSEdition                      Core
GitCommitId                    7.3.9
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

No response

Jogai commented 11 months ago

Can confirm, had an issue for this: , see #12286

Still is with linqpad 8.0.14

Jogai commented 11 months ago

8.0.17 works fine now