ScoopInstaller / Main

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

pnpm@9.11.0: hash check failed #6206

Closed quick007 closed 1 month ago

quick007 commented 1 month ago
Checking hash of pnpm-win-x64.exe ... Get-FileHash : The file 'C:\Users\x\scoop\apps\pnpm\9.11.0\pnpm.exe' cannot be read: Operation did not complete
successfully because the file contains a virus or potentially unwanted software.
At C:\Users\x\scoop\apps\scoop\current\lib\install.ps1:634 char:16
+     $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T ...
+                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (C:\Users\x\...9.11.0\pnpm.exe:PSObject) [Write-Error], WriteErrorExcepti
   on
    + FullyQualifiedErrorId : FileReadError,Get-FileHash

You cannot call a method on a null-valued expression.
At C:\Users\x\scoop\apps\scoop\current\lib\install.ps1:634 char:5
+     $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : Operation did not complete successfully because the file contains a virus or potentially unwanted
software.
At C:\Users\x\scoop\apps\scoop\current\lib\core.ps1:1379 char:16
+         return Get-Content $file -Encoding byte -TotalCount 8
+                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (C:\Users\x\...9.11.0\pnpm.exe:String) [Get-Content], IOException
    + FullyQualifiedErrorId : GetContentReaderIOError,Microsoft.PowerShell.Commands.GetContentCommand

ERROR Hash check failed!
App:         main/pnpm
URL:         https://github.com/pnpm/pnpm/releases/download/v9.11.0/pnpm-win-x64.exe#/pnpm.exe
First bytes:
Expected:    7a5dee642cb0111df9ea3b2b91d36a89225401cc27eddeb115e53710c18ada9d
Actual:

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Main/issues/new?title=pnpm%409.11.0%3a+hash+check+failed
github-actions[bot] commented 1 month ago

Cannot reproduce

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

Hash mismatch could be caused by these factors:

quick007 commented 1 month ago

Might be antivirus actually: image

YisusChrist commented 1 month ago

I am having the same issue. Is the binary safe? This is the VirusTotal report.

quick007 commented 1 month ago

No clue. I hope so because I let it past my antivirus.

mslxl commented 1 month ago

I roll back to 9.10.0 and hold it by scoop install pnpm@9.10.0 && scoop hold pnpm, which does not reported by antivirus

glektarssza commented 1 month ago

See pnpm/pnpm#8562