ScoopInstaller / Main

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

doggo@1.0.4: error creating shim #5981

Closed c-ortbauer closed 3 weeks ago

c-ortbauer commented 3 weeks ago

Prerequisites

Package Name

doggo

Expected/Current Behaviour

I'm getting an error when installing doggo. The executable is not found when creating the shim. / It should install.

Steps to Reproduce

PS> scoop install doggo
Installing 'doggo' (1.0.4) [64bit] from 'main' bucket
Download: (OK):download completed.
Checking hash of doggo_1.0.4_Windows_x86_64.zip ... ok.
Extracting doggo_1.0.4_Windows_x86_64.zip ... done.
Linking ~\scoop\apps\doggo\current => ~\scoop\apps\doggo\1.0.4
Creating shim for 'doggo'.
Get-Command: C:\Users\orc\scoop\apps\scoop\current\lib\install.ps1:757
Line |
 757 |              $bin = (Get-Command $target).Source
     |                      ~~~~~~~~~~~~~~~~~~~
     | The term 'doggo.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 'doggo.exe': File doesn't exist.

Possible Solution

I think the issue is, that there is a folder inside the downloaded zip file. I would create a PR with a changed doggo.exe location, but the folder name is "doggo_1.0.4_Windows_x86_64". So it will change with every update. Are there wildcards that can be used in the excutable paths?

Scoop and Buckets Version

PS> scoop --version
Current Scoop version:
716b6db3 (HEAD -> master, tag: v0.5.0, origin/master, origin/HEAD) chore(release): Bump to version 0.5.0 (#6035)

'main' bucket:
64bc7b90e (HEAD -> master, origin/master, origin/HEAD) terragrunt: Update to version 0.59.7

'extras' bucket:
19bd01691 (HEAD -> master, origin/master, origin/HEAD) sidekick-browser: Update to version 122.60.1.39616-1131b84

Scoop Config

PS❯ scoop config

use_lessmsi           : True
last_update           : 05.07.2024 06:28:23
aria2-warning-enabled : False
aria2-enabled         : True
scoop_repo            : https://github.com/ScoopInstaller/Scoop
scoop_branch          : master

PowerShell Version

PS❯ $PSVersionTable

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

Additional Softwares

No response

github-actions[bot] commented 3 weeks ago

The specified manifest [Bug]: doggo does not exist in this bucket. Make sure you opened the issue in the correct bucket.