You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is using a Expand-Archive which defaults to Microsoft Powershell's. However some people use Pscx which also has the function. And when Pscx's function overrides the default one, it will report the following error when using scoop install go (or many other packages).
go1.19.2.windows-amd64.zip (155.8 MB) [=============================================================================================================================================================================================] 100%
Checking hash of go1.19.2.windows-amd64.zip ... ok.
Extracting go1.19.2.windows-amd64.zip ...Expand-Archive: D:\scoop\apps\scoop\current\lib\decompress.ps1:243
Line |243|Expand-Archive-Path $Path-DestinationPath $DestinationPath-For …
| ~~~~~~~~~~~~~~~~
| A parameter cannot be found that matches parameter name 'DestinationPath'.
Exception: D:\scoop\apps\scoop\current\lib\core.ps1:642
Line |642|throw"Could not find '$(fname $from)'! (error $($proc.ExitCo …| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Could not find 'go'! (error 16)
Expected Behavior
decompression and installation succeed.
Additional context/output
Possible Solution
Explicitly use the default one by replacing the current line with
Bug Report
Current Behavior
https://github.com/ScoopInstaller/Scoop/blob/master/lib/decompress.ps1#L243
is using a
Expand-Archive
which defaults to Microsoft Powershell's. However some people usePscx
which also has the function. And when Pscx's function overrides the default one, it will report the following error when usingscoop install go
(or many other packages).Expected Behavior
decompression and installation succeed.
Additional context/output
Possible Solution
Explicitly use the default one by replacing the current line with
System details
Windows version: [e.g. 7, 8, 10, 11]
10
OS architecture: [e.g. 32bit, 64bit, arm64]
64bit
PowerShell version: [output of
"$($PSVersionTable.PSVersion)"
]7.2.6
Additional software: [(optional) e.g. ConEmu, Git]
https://github.com/Pscx/Pscx
Scoop Configuration
The text was updated successfully, but these errors were encountered: