-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Read beta version from the version file if building from a source tarball #111770
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
Conversation
r? @ozkanonur (rustbot has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also please make the change I suggested on Zulip, to change Build::release
to call beta_prerelease_version even when building from a source tarball?
86a80e3
to
5069d40
Compare
Done. Changed the condition to use |
This comment has been minimized.
This comment has been minimized.
5069d40
to
2f042ca
Compare
2f042ca
to
2bd3515
Compare
This comment has been minimized.
This comment has been minimized.
... if building from a source tarball
2bd3515
to
6013d92
Compare
This LGTM.
r=me once this is resolved by @jyn514 |
This comment has been minimized.
This comment has been minimized.
6013d92
to
343a0bf
Compare
This looks great, thanks! @bors r=ozkanonur rollup |
…=ozkanonur Read beta version from the version file if building from a source tarball This pull request changes the `bootstrap` behaviour so that when building `rustc` from a source tarball, the beta revision number is correctly read from the `version` file instead of erroring out by invoking `git`. The `version` file is observed to only exist in the official source tarball and has the following format: ``` 1.70.0-beta.4 (2013813 2023-05-07) ```
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#111745 (Fix overflow in error emitter) - rust-lang#111770 (Read beta version from the version file if building from a source tarball) - rust-lang#111797 (Migrate GUI colors test to original CSS color format) - rust-lang#111809 (Unset MIRI_BLESS for mir-opt-level 4 miri tests) - rust-lang#111817 (Migrate GUI colors test to original CSS color format) r? `@ghost` `@rustbot` modify labels: rollup
This pull request changes the
bootstrap
behaviour so that when buildingrustc
from a source tarball, the beta revision number is correctly read from theversion
file instead of erroring out by invokinggit
.The
version
file is observed to only exist in the official source tarball and has the following format: