Skip to content

Commit 7f08aee

Browse files
committed
print missing change-tracker option only in verbose mode
Signed-off-by: onur-ozkan <[email protected]>
1 parent d0985bb commit 7f08aee

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/bootstrap/src/bin/main.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,14 @@ fn check_version(config: &Config) -> Option<String> {
171171
if io::stdout().is_terminal() && !config.dry_run() {
172172
t!(fs::write(warned_id_path, latest_change_id.to_string()));
173173
}
174-
} else {
174+
175+
Some(msg)
176+
} else if config.is_verbose() {
175177
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");
176178
msg.push_str("NOTE: to silence this warning, ");
177179
msg.push_str(&format!("add `change-id = {latest_change_id}` at the top of `config.toml`"));
178-
};
179-
180-
Some(msg)
180+
Some(msg)
181+
} else {
182+
None
183+
}
181184
}

0 commit comments

Comments
 (0)