Skip to content

Conversation

@alexweininger
Copy link
Member

@alexweininger alexweininger commented Apr 11, 2022

This fixes the recent issues we've been having with zip deploy. Based on the Node.JS docs, I think this fix is OK.

image

We add a 'data' event listener, so this breaking edge case shouldn't apply to us.

I am able to deploy successfully if I replace new Readable().wrap(zipFile.outputStream) with zipFile.outputStream as Readable.

This still could be an issue with yazl, or possibly a bug with Readable.wrap.

Readable.wrap

v15.0.0 is the first version where the issue reproduces. There was a commit that changed the implementation of .wrap in v15.0.0.

PR: nodejs/node#34204
Changelog (search for ".wrap"): https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V15.md#semver-major-commits

@alexweininger alexweininger requested a review from a team as a code owner April 11, 2022 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants