You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of rust-lang#117815 - onur-ozkan:update-change-tracking-impl, r=albertlarsan68
improve bootstrap change-tracking system
This PR aims to improve how change-tracking system works for bootstrap changes by doing the followings:
- Enforce embedding directive informations about the changes on `bootstrap/src/lib.rs`.
- Give more informative change inputs on the terminal (rust-lang#117815 (comment)).
- Avoid spamming the change informations(by reading and creating `.last-warned-change-id` under build output dir).
see the zulip conversation for more details: https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/config.2Etoml.20change.20tracking
cc `@RalfJung`
" - PR Link https://github.com/rust-lang/rust/pull/{}\n",
137
+
change.change_id
138
+
));
139
+
}
130
140
131
141
msg.push_str("NOTE: to silence this warning, ");
132
142
msg.push_str(&format!(
133
-
"update `config.toml` to use `change-id = {latest_config_id}` instead"
143
+
"update `config.toml` to use `change-id = {latest_change_id}` instead"
134
144
));
145
+
146
+
if io::stdout().is_terminal(){
147
+
t!(fs::write(warned_id_path, id.to_string()));
148
+
}
135
149
}
136
150
}else{
137
151
msg.push_str("WARNING: The `change-id` is missing in the `config.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations.\n");
138
152
msg.push_str("NOTE: to silence this warning, ");
139
-
msg.push_str(&format!("add `change-id = {latest_config_id}` at the top of `config.toml`"));
153
+
msg.push_str(&format!("add `change-id = {latest_change_id}` at the top of `config.toml`"));
0 commit comments