-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix: Fix release channel detection #14598
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
It'd be great if someone can test whether #14549 works as intended with this patch. |
@@ -779,7 +779,7 @@ fn project_json_to_crate_graph( | |||
CrateOrigin::Local { repo: None, name: None } | |||
}, | |||
target_layout.clone(), | |||
None, | |||
channel, | |||
); |
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.
I assumed not passing channel
here is an oversight, or is it intentional?
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.
looks like an oversight to me
2b5b0a4
to
eb5fea0
Compare
See bootstrap code in rust-lang/rust for versioning details: https://github.com/rust-lang/rust/blob/e49122fb1ca87a6c3e3c22abb315fc75cfe8daed/src/bootstrap/lib.rs#L1244
eb5fea0
to
4db87f9
Compare
@bors r=lnicola |
☀️ Test successful - checks-actions |
We detect toolchain's release channel by looking at pre-release identifier of cargo/rustc's version string. It's empty for stable, "beta" or "beta.x" for beta, and "nightly" for nightly.
See rust-lang/rust's bootstrap code for how the version string is determined.