-
Notifications
You must be signed in to change notification settings - Fork 491
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
Comments
For the record, Windows 11 has built-in support for .tar.gz Edit: PowerShell's |
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/tauri-apps/tauri/releases/tag/tauri-cli-v2.2.5 ships .tar.gz on Linux only, macOS and Windows are .zip. 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. |
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.
The text was updated successfully, but these errors were encountered: