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

internal: Stop producing .gz artifacts for Windows #18412

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

lnicola
Copy link
Member

@lnicola lnicola commented Oct 25, 2024

No description provided.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 25, 2024
@lnicola
Copy link
Member Author

lnicola commented Oct 25, 2024

I'll merge this on Monday, to get a note about it in the release notes.

@lnicola lnicola added this pull request to the merge queue Oct 28, 2024
Merged via the queue into rust-lang:master with commit d481dec Oct 28, 2024
9 checks passed
@lnicola lnicola deleted the windows-no-gz branch October 28, 2024 10:25
@ia0
Copy link

ia0 commented Oct 29, 2024

Not that the change matters to me, but I'm curious to know the rationale.

@lnicola
Copy link
Member Author

lnicola commented Oct 29, 2024

ZIP files are nicer because they preserve the executable flag (relevant on Unix) and original file name (e.g. #9469, but there were others). And we were already producing Windows ZIP artifacts since forever, so no point in keeping around extra files. As a bonus, they also contain debug symbols.

@ia0
Copy link

ia0 commented Oct 29, 2024

Oh I see, I missed the fact that it was really just a .gz and not a .tar.gz. Makes sense. Thanks a lot for the explanation!

@lnicola
Copy link
Member Author

lnicola commented Oct 29, 2024

Yeah, and at some point Windows was shipping a tar version (based on libarchive) that could read .tar.gz, but not .gz.

SomeoneToIgnore pushed a commit to zed-industries/zed that referenced this pull request Nov 12, 2024
After rust-lang/rust-analyzer#18412, there is no
longer a .gz file for windows rust-analyzer targets, and the rust
analyzer LSP fails to download. This fixes it by using the .zip version
on windows.

The .zip also extracts to a _folder_ containing rust-analyzer.exe rather
than just a file. I've handled it in this code, but am not 100% sure if
other parts of the code need too be aware of it.

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants