From 571f95fb94fa51a8003de8a610ac0eba5e02b1a3 Mon Sep 17 00:00:00 2001 From: moxian Date: Wed, 5 Mar 2025 16:24:07 -0800 Subject: [PATCH] Remember silenced bootstrap changelog warnings even in --dry-run --- src/bootstrap/src/bin/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/src/bin/main.rs b/src/bootstrap/src/bin/main.rs index 38b380e3db82..07118164a706 100644 --- a/src/bootstrap/src/bin/main.rs +++ b/src/bootstrap/src/bin/main.rs @@ -187,7 +187,8 @@ fn check_version(config: &Config) -> Option { "update `config.toml` to use `change-id = {latest_change_id}` instead" )); - if io::stdout().is_terminal() && !config.dry_run() { + if io::stdout().is_terminal() { + t!(std::fs::create_dir_all(warned_id_path.parent().unwrap())); t!(fs::write(warned_id_path, latest_change_id.to_string())); } } else {