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
Rollup merge of #117263 - onur-ozkan:change-id-fix, r=saethlin
handle the case when the change-id isn't found
When we switch back and forth between the old and recent branches, if there was a breaking change in the bootstrap configuration in between, we have to update the change-id in the build configuration with each checkout, which can be exhausting. This change fixes that.
r? saethlin
msg.push_str("To see more detail about these changes, visit the following PRs:\n");
121
-
for link in change_links {
122
-
msg.push_str(&format!(" - {link}\n"));
123
-
}
123
+
msg.push_str("To see more detail about these changes, visit the following PRs:\n");
124
+
125
+
for link in change_links {
126
+
msg.push_str(&format!(" - {link}\n"));
124
127
}
128
+
125
129
msg.push_str("WARNING: there have been changes to x.py since you last updated.\n");
126
-
format!("update `config.toml` to use `change-id = {latest_config_id}` instead")
127
-
}else{
128
-
returnNone;
130
+
131
+
msg.push_str("note: to silence this warning, ");
132
+
msg.push_str(&format!(
133
+
"update `config.toml` to use `change-id = {latest_config_id}` instead"
134
+
));
129
135
}
130
136
}else{
131
137
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");
132
-
format!("add `change-id = {latest_config_id}` at the top of `config.toml`")
138
+
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`"));
0 commit comments