Replies: 2 comments 1 reply
-
@aetonsi - It worked like a charm! Thanx bro, lifesaver. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hmm, I see, thanks for the detailed investigation. I guess the reason we don't see this issue often is because 7zip (an internal dependency) almost always gets installed once you start using Scoop (for archives that are not zips, which is very very likely). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Report
Current Behavior
If some package downloads a zip file compressed using some "peculiar" compression methods, scoop can't unpack them if running in Windows Powershell, and the installation breaks.
I don't think this is related to a single package, but i'm not sure as i don't know how the general installation process works in scoop.
You can try with
nano
. Open up a brand new Windows Sandbrox and in powershell just install scoop then immediately installnano
(see full output below).If you check the downloaded file ( https://github.com/rivy/scoop.bucket.scoop-main/blob/0c61592bb82a5af8ea17b88341d72cc09160285f/nano.json#LL9C21-L9C128 ) it's using Deflate64 for most of its files, internally.
I opened the issue here because i noticed that, if a package, any package, also installs 7zip, then every subsequent installation will not fail like this; so i'm guessing that it's scoop the one choosing to use
[System.IO.Compression.ZipFileExtensions]::ExtractToFile
(that apparently doesn't support Deflate64, in its older .NET Framework 4.8.x version -which should be the one used by windows powershell-) or 7zip, if installed (that supports anything). Also see the output below, i installedcurl
which downloads7zip
, then reinstallednano
with no problems.If the de-compression part is up to every package, then please close this issue, and sorry for bothering.
Expected Behavior
Just for the decompression to work.
Additional context/output
Possible Solution
Always download 7zip if running in WinPosh?
System details
Windows version: win 11 (
Microsoft Windows [Version 10.0.22621.1702]
)OS architecture: x64
PowerShell version:
5.1.22621.963
Additional software: nothing at all. fresh install of scoop on a "clean" OS (sandbox or not)
Scoop Configuration
Beta Was this translation helpful? Give feedback.
All reactions