-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Refactor versions detection in build-manifest #77145
Refactor versions detection in build-manifest #77145
Conversation
Hm, so we can just merge this, but I'm thinking it would be good to @bors try and try to release a dev-static nightly with it just to test that it works on RCS as well. Unfortunately our CI here doesn't run build manifest in any capacity :/ |
…versions, r=<try> Refactor versions detection in build-manifest This PR refactors how `build-manifest` handles versions, making the following changes: * `build-manifest` now detects the "package releases" on its own, without relying on rustbuild providing them through CLI arguments. This drastically simplifies calling the tool outside of `x.py`, and will allow to ship the prebuilt tool in a tarball in the future, with the goal of stopping to invoke `x.py` during `promote-release`. * The `tar` command is not used to extract the version and the git hash from tarballs anymore. The `flate2` and `tar` crates are used instead. This makes detecting those pieces of data way faster, as the archive is decompressed just once and we stop parsing the archive once all the information is retrieved. * The code to extract the version and the git hash now stores all the collected data dynamically, without requiring to add new fields to the `Builder` struct every time. I tested the changes locally and it should behave the same as before. r? `@Mark-Simulacrum`
☀️ Try build successful - checks-actions, checks-azure |
Kicked off promotion. |
Promotion ended, it seems to work? |
bb8430e
to
73d9c24
Compare
@bors r+ |
📌 Commit 73d9c24 has been approved by |
@bors r- Wait, there is actually a bug, this does not find the |
Addressed. |
@bors r=Mark-Simulacrum |
📌 Commit 0749ad0 has been approved by |
☀️ Test successful - checks-actions, checks-azure |
The version was removed in rust-lang#77145
This PR refactors how
build-manifest
handles versions, making the following changes:build-manifest
now detects the "package releases" on its own, without relying on rustbuild providing them through CLI arguments. This drastically simplifies calling the tool outside ofx.py
, and will allow to ship the prebuilt tool in a tarball in the future, with the goal of stopping to invokex.py
duringpromote-release
.tar
command is not used to extract the version and the git hash from tarballs anymore. Theflate2
andtar
crates are used instead. This makes detecting those pieces of data way faster, as the archive is decompressed just once and we stop parsing the archive once all the information is retrieved.Builder
struct every time.I tested the changes locally and it should behave the same as before.
r? @Mark-Simulacrum