Skip to content

Commit b165fdc

Browse files
committed
Do not warn about missing change ID in tarball builds
1 parent f5703d5 commit b165fdc

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/bootstrap/src/bin/main.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,16 @@ fn check_version(config: &Config) -> Option<String> {
199199
Some(ChangeId::Ignore) => return None,
200200
Some(ChangeId::Id(id)) => id,
201201
None => {
202-
msg.push_str("WARNING: The `change-id` is missing in the `bootstrap.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations.\n");
203-
msg.push_str("NOTE: to silence this warning, ");
204-
msg.push_str(&format!(
205-
"add `change-id = {latest_change_id}` or `change-id = \"ignore\"` at the top of `bootstrap.toml`"
206-
));
207-
return Some(msg);
202+
return if !config.rust_info.is_from_tarball() {
203+
msg.push_str("WARNING: The `change-id` is missing in the `bootstrap.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations.\n");
204+
msg.push_str("NOTE: to silence this warning, ");
205+
msg.push_str(&format!(
206+
"add `change-id = {latest_change_id}` or `change-id = \"ignore\"` at the top of `bootstrap.toml`"
207+
));
208+
Some(msg)
209+
} else {
210+
None
211+
};
208212
}
209213
};
210214

0 commit comments

Comments
 (0)