ScoopInstaller / Main

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

[Bug]: error installing vhs #5837

Closed kborowinski closed 4 months ago

kborowinski commented 4 months ago

Prerequisites

Package Name

vhs

Expected/Current Behaviour

Installation fails because the vhs package is extracted to: C:\ProgramData\scoop\apps\vhs\0.7.2\vhs_0.7.2_Windows_x86_64\ and install.ps1 expects the vhs.exe file in: C:\ProgramData\scoop\apps\vhs\0.7.2\

Steps to Reproduce

Installing 'vhs' (0.7.2) [64bit] from 'main' bucket
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 8ffca8|OK  |    14MiB/s|C:/Users/Bukem/scoop/cache/vhs#0.7.2#https_github.com_charmbracelet_vhs_releases_download_v0.7.2_vhs_0.7.2_Windows_x86_64.zip
Download: Status Legend:
Download: (OK):download completed.
Checking hash of vhs_0.7.2_Windows_x86_64.zip ... ok.
Extracting vhs_0.7.2_Windows_x86_64.zip ... done.
Linking C:\ProgramData\scoop\apps\vhs\current => C:\ProgramData\scoop\apps\vhs\0.7.2
Creating shim for 'vhs'.
Get-Command: C:\Users\Bukem\scoop\apps\scoop\current\lib\install.ps1:783
Line |
 783 |              $bin = (Get-Command $target).Source
     |                      ~~~~~~~~~~~~~~~~~~~
     | The term 'vhs.exe' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the
     | path is correct and try again.
Can't shim 'vhs.exe': File doesn't exist.

Possible Solution

extract_dir should be specified in the manifest?

Scoop and Buckets 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:
3f9948e07 (HEAD -> master, origin/master, origin/HEAD) scala: Update to version 3.4.2

'extras' bucket:
a3e94e8c9 (HEAD -> master, origin/master, origin/HEAD) restfox: Update to version 0.15.0

'versions' bucket:
bceb3e108 (HEAD -> master, origin/master, origin/HEAD) swift-nightly: Update to version 20240516.2

'nirsoft' bucket:
08dbf0e (HEAD -> master, origin/master, origin/HEAD) 'updated'

'sysinternals' bucket:
e669cc0 (HEAD -> main, origin/main, origin/HEAD) chore(ci): switch to `pull_request_target` trigger

'nonportable' bucket:
5b13a94 (HEAD -> master, origin/master, origin/HEAD) grammarly-np: Update to version 1.2.77.1394

Scoop Config

last_update         aria2-warning-enabled scoop_branch scoop_repo
-----------         --------------------- ------------ ----------
2024-05-16 21:08:37                 False master       https://github.com/ScoopInstaller/Scoop

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0, 5.0, 5.1, 6.0, 7.0}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

No response