-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
rustbuild: Allow setting rls/rustfmt to "broken" #45243
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
Note that the latter commit is here to test this out on Windows/Mac/Linux with a "broken" rls to make sure this actually works, this shouldn't be r+'d as-is just yet. I'm also all for other suggestions of how to handle this! |
src/bootstrap/dist.rs
Outdated
@@ -1245,35 +1254,38 @@ impl Step for Extended { | |||
} | |||
rtf.push_str("}"); | |||
|
|||
fn filter(contents: &str, marker: &str) -> String { | |||
let start = format!("{}-start", marker); | |||
let end = format!("{}-end", marker); |
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.
Let's have something like tool-rls-start
instead of just rls-start
to avoid the unfortunate (and hard to debug)` situation with two tools that have the same suffix conflicting here.
Yeah, not a huge fan of how much code had to change to make this happen, but seems like it's probably necessary at least before a larger rewrite of the dist part of rustbuild... seems good to me, other than the small nit. |
ad6e880
to
874e135
Compare
@Mark-Simulacrum yeah I'm not personally too happy with how it turned out but then again I've also never been happy with hour our distribution-related code looked, so it's not all that worse! |
874e135
to
47dde89
Compare
47dde89
to
75b61b7
Compare
@bors: r=Mark-Simulacrum |
📌 Commit 75b61b7 has been approved by |
⌛ Testing commit 75b61b7899dd6583311563c4b087ba4880b59837 with merge ae4fb1330c1a415aa50b2c280d03036a7c0b23bf... |
💔 Test failed - status-appveyor |
|
This commit enables configuring the RLS/rustfmt tools to the "broken" state and actually get it past CI. The main changes here were to update all dist-related code to handle the situation where the RLS isn't available. This in turn involved a homegrown preprocessor-like-function to edit the configuration files we pass to the various combined installer tools.
75b61b7
to
5050dad
Compare
@bors: r=Mark-Simulacrum |
📌 Commit 5050dad has been approved by |
rustbuild: Allow setting rls/rustfmt to "broken" This commit enables configuring the RLS/rustfmt tools to the "broken" state and actually get it past CI. The main changes here were to update all dist-related code to handle the situation where the RLS isn't available. This in turn involved a homegrown preprocessor-like-function to edit the configuration files we pass to the various combined installer tools.
☀️ Test successful - status-appveyor, status-travis |
This commit enables configuring the RLS/rustfmt tools to the "broken" state and
actually get it past CI. The main changes here were to update all dist-related
code to handle the situation where the RLS isn't available. This in turn
involved a homegrown preprocessor-like-function to edit the configuration files
we pass to the various combined installer tools.