Skip to content

Commit 571f95f

Browse files
committed
Remember silenced bootstrap changelog warnings even in --dry-run
1 parent 30f168e commit 571f95f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/src/bin/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ fn check_version(config: &Config) -> Option<String> {
187187
"update `config.toml` to use `change-id = {latest_change_id}` instead"
188188
));
189189

190-
if io::stdout().is_terminal() && !config.dry_run() {
190+
if io::stdout().is_terminal() {
191+
t!(std::fs::create_dir_all(warned_id_path.parent().unwrap()));
191192
t!(fs::write(warned_id_path, latest_change_id.to_string()));
192193
}
193194
} else {

0 commit comments

Comments
 (0)