ScoopInstaller / Extras

📦 The Extras bucket for Scoop.

Home Page:https://scoop.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wezterm@20240203-110809-5046fc22: hash check failed

kalocsaibotond opened this issue · comments

I just simply tried to update wezterm to the latest scoop available version, in the cross platform Powershell 7

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

and then in the Windows Powershell 5

Name                           Value
----                           -----
PSVersion                      5.1.19041.4170
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.4170
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

.
, and I got the following result

PS > scoop update wezterm
wezterm: 20230712-072601-f4abf8fd -> 20240203-110809-5046fc22
Updating one outdated app:
Updating 'wezterm' (20230712-072601-f4abf8fd -> 20240203-110809-5046fc22)
Downloading new version
WezTerm-windows-20240203-110809-5046fc22.zip (63.1 MB) [===========================================================================================================================================================================] 100%
Checking hash of WezTerm-windows-20240203-110809-5046fc22.zip ... Get-FileHash: C:\Users\Me\scoop\apps\scoop\current\lib\install.ps1:674
Line |
 674 |      $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T …
     |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Operation did not complete successfully because the file contains a virus or potentially unwanted software. :
     | 'C:\Users\Me\scoop\cache\wezterm#20240203-110809-5046fc22#https_github.com_wez_wezterm_releases_download_20240203-110809-5046fc22_WezTerm-windows-20240203-110809-5046fc22.zip'
InvalidOperation: C:\Users\Me\scoop\apps\scoop\current\lib\install.ps1:674
Line |
 674 |      $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T …
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.
Get-Content: C:\Users\Me\scoop\apps\scoop\current\lib\core.ps1:1173
Line |
1173 |          return Get-Content $file -AsByteStream -TotalCount 8
     |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Operation did not complete successfully because the file contains a virus or potentially unwanted software. :
     | 'C:\Users\Me\scoop\cache\wezterm#20240203-110809-5046fc22#https_github.com_wez_wezterm_releases_download_20240203-110809-5046fc22_WezTerm-windows-20240203-110809-5046fc22.zip'
ERROR Hash check failed!
App:         extras/wezterm
URL:         https://github.com/wez/wezterm/releases/download/20240203-110809-5046fc22/WezTerm-windows-20240203-110809-5046fc22.zip
First bytes:
Expected:    57e5d03b585303d81e8b8e96d1230362852eb39aca92b3b29c7a42cfb82f9ac4
Actual:

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Extras/issues/new?title=wezterm%4020240203-110809-5046fc22%3a+hash+check+failed

Looking at WezTerm's scoop manifesto: https://github.com/ScoopInstaller/Extras/blob/master/bucket/wezterm.json
the download url matches precisely to the WezTerm's github repo release page download link, and the hash code in the manifesto is identical to what Wez published.
Probably a good starting point for debugging is the fact that the actual hash code is an empty string.

Scoop version:

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

'extras' bucket:
dbf59dcad (HEAD -> master, origin/master, origin/HEAD) texmacs: Update to version 2.1.4

Cannot reproduce

Are you sure your scoop is up to date? Clean cache and reinstall
Please run scoop update; scoop cache rm wezterm; and update/reinstall application

Hash mismatch could be caused by these factors:

  • Network error
  • Antivirus configuration
  • Blocked site (Great Firewall of China, Corporate restrictions, ...)