ScoopInstaller / Main

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

MySQL Workbench 8.0.38 - Extraction issue #5972

Closed DavidEurenius closed 4 months ago

DavidEurenius commented 4 months ago

Prerequisites

Package Name

MySQL-workbench

Expected/Current Behaviour

Scoop has issues extracting and installing the package 8.0.38

Steps to Reproduce

PowerShell 7.4.3
PS C:\Users\david> scoop update *
mysql-workbench: 8.0.36 -> 8.0.38
Updating one outdated app:
Updating 'mysql-workbench' (8.0.36 -> 8.0.38)
Downloading new version
Loading mysql-workbench-community-8.0.38-winx64.msi from cache
Checking hash of mysql-workbench-community-8.0.38-winx64.msi ... ok.
Uninstalling 'mysql-workbench' (8.0.36)
Installing 'mysql-workbench' (8.0.38) [64bit] from 'main' bucket
Loading mysql-workbench-community-8.0.38-winx64.msi from cache
Extracting mysql-workbench-community-8.0.38-winx64.msi ... Exception: C:\Users\david\scoop\apps\scoop\current\lib\core.ps1:864
Line |
 864 |          throw "Could not find '$(fname $from)'! (error $($proc.ExitCo …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find 'MySQL Workbench 8.0 CE'! (error 16)
PS C:\Users\david>

Possible Solution

I think the path is wrong or maybe \ in JSON, the folder is called mysql-workbench

Scoop and Buckets Version

PS C:\Users\david> scoop --version
Current Scoop version:
d337bb1f (HEAD -> master, tag: v0.4.2, origin/master, origin/HEAD) chore(release): Bump to version 0.4.2 (#5964)

'main' bucket:
9f77f1dad (HEAD -> master, origin/master, origin/HEAD) openapi-generator-cli: Update to version 7.7.0

'extras' bucket:
1de909a21 (HEAD -> master, origin/master, origin/HEAD) sidekick-browser: Update to version 122.60.1.40405-4e57373

'versions' bucket:
e9562f569 (HEAD -> master, origin/master, origin/HEAD) ipfilter-nightly@1719810439: Fix hash (Closes #1819)

'nonportable' bucket:
2b94c2e8 (HEAD -> master, origin/master, origin/HEAD) 10x-np: Update to version 1.0.179

Scoop Config

PS C:\Users\david> scoop config

last_update         scoop_repo                              scoop_branch aria2-warning-enabled
-----------         ----------                              ------------ ---------------------
2024-07-02 10:33:16 https://github.com/ScoopInstaller/Scoop master                       False

PowerShell Version

PS C:\Users\david> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.3
PSEdition                      Core
GitCommitId                    7.4.3
OS                             Microsoft Windows 10.0.22631
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

MellowPhi commented 4 months ago

I am facing the same issue. I have tried uninstalling and installing, clearing cache (although idk if this would help) I am not sure if this issue is related to this issue https://github.com/ScoopInstaller/Scoop/issues/6038#issue-2385977279 and possible solution suggested by @qwertyhjklxyz in the comment.

Reproducing steps

➜ ~  scoop install main/mysql-workbench
Installing 'mysql-workbench' (8.0.38) [64bit] from 'main' bucket
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 6aa399|OK  |   3.0MiB/s|C:/Users/mellowphi/scoop/cache/mysql-workbench#8.0.38#https_cdn.mysql.com_Downloads_MySQLGUITools_mysql-workbench-community-8.0.38-winx64.msi
Download: Status Legend:
Download: (OK):download completed.
Checking hash of mysql-workbench-community-8.0.38-winx64.msi ... ok.
Extracting mysql-workbench-community-8.0.38-winx64.msi ... Exception: C:\Users\mellowphi\scoop\apps\scoop\current\lib\core.ps1:864
Line |
 864 |          throw "Could not find '$(fname $from)'! (error $($proc.ExitCo …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find 'MySQL Workbench 8.0 CE'! (error 16)

Scoop and Buckets Version

➜ ~  scoop --version
Current Scoop version:
d337bb1f (HEAD -> master, tag: v0.4.2, origin/master, origin/HEAD) chore(release): Bump to version 0.4.2 (#5964)

'main' bucket:
7d31ad518 (HEAD -> master, origin/master, origin/HEAD) simplex-chat: Update to version 5.8.2

'extras' bucket:
5cae5a73b (HEAD -> master, origin/master, origin/HEAD) windirstat@1.1.2: Fix download url & autoupdate

'versions' bucket:
3acb714eb (HEAD -> master, origin/master, origin/HEAD) zig-dev: Update to version 0.14.0-dev.144

'nonportable' bucket:
2a123382 (HEAD -> master, origin/master, origin/HEAD) 10x-np: Update to version 1.0.179```

### Scoop Config
```pwsh
➜ ~  scoop config

last_update          scoop_branch scoop_repo                              aria2-enabled
-----------          ------------ ----------                              -------------
4/07/2024 9:32:04 AM master       https://github.com/ScoopInstaller/Scoop          True

PowerShell Version



Name                           Value
----                           -----
PSVersion                      7.4.3
PSEdition                      Core
GitCommitId                    7.4.3
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0```
MellowPhi commented 4 months ago

Issue is fixed. Thank you.