Closed brian6932 closed 3 months ago
Could not reproduce here, what's the 7zip log?
There's no log file in the dir
❯ ls ~\scoop\apps\test\nightly-20240521
Directory:
~\scoop\apps\test\nightly-20240521
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 2024-05-06 6:34 PM 211265904 _.zip
After another look, I noticed that this only occurs when the file extension's renamed to .zip
, .7z
works as expected.
The extractor choosing function is not changed, and both Expand-7zipArchive()
and Expand-ZipArchive()
should extract the zip file. Is there an error in PS5 or main
branch?
And is there any error when installing other zip archives, e.g., ag
?
Is there an error in PS5 or
main
branch?
Doesn't happen on the master
branch.
❯ $Error
OperationStopped:
New-Object: Exception calling ".ctor" with "3" argument(s): "End of Central Directory record could not be found."
And is there any error when installing other zip archives, e.g.,
ag
?
Haven't seen any so far, I've only updated my branch for a day so far.
Ref: https://stackoverflow.com/a/20960434
Since the archive is indeed a CAB file, Expand-ZipArchive()
encountered this error.
Bug Report
Current Behavior
Expected Behavior
Extract-7zipArchive
used to work fine. Likely caused by #5973 or #5951.System details
Windows version: 10
OS architecture: 64bit
PowerShell version: 7.5.0-preview.2
Additional software:
Scoop Configuration