Closed vaind closed 8 months ago
this looks similar to the errors we were seeing with newer node versions -- are you using the same docker image?
I'm running outside docker because the way the dockerfile is currently structured currently doesn't work with the development loop I'm working with. Also, it doesn't actually rebuild with yarn when you run docker build .
due to some caching issue 🤷
anyway, the same issue was in node-unzip
which is what unzipper
is forked from. It's just a bug somewhere in that dependency and from the state of that project, doesn't seem worth pursuing. Instead, I've tried yauzl and it works flawlessly.
would you like to send a patch that improves the unpacking here? it would probably be nice to fix it so it supports whatever other zips are involved that it was unhappy with
yeah, I'm preparing a PR
I've found out it happens only with node20, as you've already suggested it might.
I've added a test case for the future update and leaving the actual implementation untouched for now.
I've found out it happens only with node20, as you've already suggested it might.
I couldn't reproduce this in a test case, seems to be limited to yarn build
output.
Environment
Steps to Reproduce
When trying to add powershell target, I'm consistently getting:
when extracting a zip file that came as part of the artifact zip from the following artifact
The first zip file (
fccdee8858a22a156012d96b8819c31f76a6c00d.zip
) that comes directly from GitHub is extracted without any errors reported but actually, its content that is written to disc is broken (Sentry.zip)I'm going to check if the same happens when using
yauzl
to extract instead ofunzipper