diff options
| author | moxian <moxian@users.noreply.github.com> | 2025-03-05 16:24:07 -0800 |
|---|---|---|
| committer | moxian <moxian@users.noreply.github.com> | 2025-03-05 16:28:35 -0800 |
| commit | 571f95fb94fa51a8003de8a610ac0eba5e02b1a3 (patch) | |
| tree | 52821422e569a891a14a33e187f7b242f16851f1 | |
| parent | 30f168ef811aec63124eac677e14699baa9395bd (diff) | |
| download | rust-571f95fb94fa51a8003de8a610ac0eba5e02b1a3.tar.gz rust-571f95fb94fa51a8003de8a610ac0eba5e02b1a3.zip | |
Remember silenced bootstrap changelog warnings even in --dry-run
| -rw-r--r-- | src/bootstrap/src/bin/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/src/bin/main.rs b/src/bootstrap/src/bin/main.rs index 38b380e3db8..07118164a70 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<String> { "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 { |
