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

fix(downloader): replace zip with adm-zip #801

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ghost
Copy link

@ghost ghost commented Apr 18, 2023

zip library returns false for file permissions on Windows (library source), which is incompatible with file mode expected by Node.js File System API (File system API: chmod). This leads to TypeError in runtime.

adm-zip, instead, handles such cases correctly.

Fixes #CR-18233

`zip` library returns `false` for file permissions on Windows ([library source](https://github.com/kriskowal/zip/blob/master/zip.js#L227)), which is incompatible with file mode expected by Node.js File System API ([File system API: chmod](https://nodejs.org/docs/latest-v18.x/api/fs.html#file-modes)). This leads to TypeError in runtime.

`adm-zip`, instead, handles such cases correctly.

Fixes #CR-18233
@ghost ghost requested a review from yaroslav-codefresh April 18, 2023 15:25
@ghost ghost self-assigned this Apr 18, 2023
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.

1 participant