ScoopInstaller / Extras

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

[Bug]: googlechrome installing a specific version fails #12282

Closed AchimGaedkeLynker closed 9 months ago

AchimGaedkeLynker commented 10 months ago

Prerequisites

Package Name

googlechrome

Expected/Current Behaviour

I'd like to downgrade googlechrome in order to reproduce a problem with https://code.earthengine.google.com/

So, I looked at the commit history https://github.com/ScoopInstaller/Extras/commits/master/bucket/googlechrome.json and picked the version before the most recent and expect it to install.

But sadly it fails with this error message

> scoop install googlechrome@119.0.6045.124
WARN  Given version (119.0.6045.124) does not match manifest (119.0.6045.160)
WARN  Attempting to generate manifest for 'googlechrome' (119.0.6045.124)
Autoupdating googlechrome
Searching hash for 119.0.6045.124_chrome_installer.exe in https://scoopinstaller.github.io/UpdateTracker/googlechrome/chrome.min.xml
Could not find hash in https://scoopinstaller.github.io/UpdateTracker/googlechrome/chrome.min.xml
Downloading 119.0.6045.124_chrome_installer.exe to compute hashes!
The remote server returned an error: (404) Not Found.
URL https://dl.google.com/release2/chrome/$match32_119.0.6045.124/119.0.6045.124_chrome_installer.exe#/dl.7z is not valid
Could not install googlechrome@119.0.6045.124
Select-CurrentVersion : Cannot bind argument to parameter 'AppName' because it is an empty string.
At C:\Users\achimgaedke\scoop\apps\scoop\current\lib\core.ps1:239 char:54
+     return $null -ne (Select-CurrentVersion -AppName $app -Global:$gl ...
+                                                      ~~~~
    + CategoryInfo          : InvalidData: (:) [Select-CurrentVersion], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Select-CurrentVersion

You cannot call a method on a null-valued expression.
At C:\Users\achimgaedke\scoop\apps\scoop\current\lib\manifest.ps1:36 char:5
+     $app = $app.TrimStart('/')
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Couldn't find manifest for ''.

Steps to Reproduce

PS> scoop install googlechrome@119.0.6045.124

Possible Solution

Sorry, I'm not very familiar with debugging powershell apps.

Scoop and Buckets Version

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

'extras' bucket:
dc76cf6cf (HEAD -> master, origin/master, origin/HEAD) sidekick-browser: Update to version 116.53.1.36304-816141b

'main' bucket:
cfc1c8fcf (HEAD -> master, origin/master, origin/HEAD) red-view@20nov23: Fix hash (Closes #5288)

Scoop Config

scoop config

last_update                       aria2-enabled scoop_branch scoop_repo
-----------                       ------------- ------------ ----------
2023-11-21T11:52:44.5322355+13:00          True master       https://github.com/ScoopInstaller/Scoop

PowerShell Version

> $PSVersionTable

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

Additional Softwares

No response

HUMORCE commented 9 months ago

This feature is not guaranteed to be 100% available

HUMORCE commented 9 months ago

A known and documented issue.