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

Consider .tar.gz instead of .zip for releases #2275

Open
nazar-pc opened this issue Jan 11, 2025 · 3 comments
Open

Consider .tar.gz instead of .zip for releases #2275

nazar-pc opened this issue Jan 11, 2025 · 3 comments

Comments

@nazar-pc
Copy link

Zip files can be opened on pretty much any OS with built-in software, while .tar.gz on Windows requires third-party software to be used and doesn't integrate as seamlessly into built-in file manager.

Even on Linux where there is likely stock software with .tar.gz support, it it still a bad choice since it doesn't allow efficient extraction of random files the same way Zip does.

Basically .tar.gz is almost never a great choice, so consider using .zip instead.

@cyborg-ts cyborg-ts added this to D2 Jan 11, 2025
@anthonyvdotbe
Copy link

anthonyvdotbe commented Jan 18, 2025

For the record, Windows 11 has built-in support for .tar.gz

Edit: PowerShell's Expand-Archive currently lacks support for it though, so switching to .zip would be helpful in this regard

@alixander
Copy link
Collaborator

I appreciate you raising this issue. Do you have examples of popular open-source packages that have used zip over tar? I am not familiar with the tradeoffs, so I'm just going to defer on what is most standard from bigger packages, and that seems to be tar.

https://github.com/cli/cli/releases/tag/v2.65.0
https://github.com/golang/mock/releases/tag/v1.6.0

@nazar-pc
Copy link
Author

nazar-pc commented Jan 21, 2025

https://github.com/tauri-apps/tauri/releases/tag/tauri-cli-v2.2.5 ships .tar.gz on Linux only, macOS and Windows are .zip.
The repo has 88.6k stars, so I think it clarifies as popular.

There are certainly examples of both approaches. Also .tar.gz is really slow on Windows, for example caching in GitHub Actions on Windows routinely takes much longer than on other platforms due to how slow their implementation of this format is. Not that it is a big issue for d2, but in general it contributes to the format being objectively quite bad and is only great for niche use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants