Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use Readable.wrap #1114

Merged
merged 1 commit into from Apr 11, 2022
Merged

Don't use Readable.wrap #1114

merged 1 commit into from Apr 11, 2022

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.

None yet

2 participants