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

Replace tar with tar-stream #593

Merged
merged 3 commits into from
Oct 22, 2024
Merged

Replace tar with tar-stream #593

merged 3 commits into from
Oct 22, 2024

Conversation

niik
Copy link
Member

@niik niik commented Oct 22, 2024

Our tar dependency is large, accounting for ~5Mb of install size according to packagephobia.

In an attempt to minimize our dependencies (see for example #583). I'm replacing it with tar-stream which is significantly lighter and carries much fewer sub dependencies.

This isn't a fully fledged tar implementation and it assumes no malicious payloads which should be fine in our case since we control the tar files we're extracting (via dugite-native).

script/download-git.js Fixed Show fixed Hide fixed
Copy link
Member

@sergiou87 sergiou87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely! 💖

@niik niik merged commit dd7feaf into main Oct 22, 2024
6 checks passed
@niik niik deleted the remove-tar branch October 22, 2024 14:21
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.

2 participants