We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b399b5 commit 520662eCopy full SHA for 520662e
src/bootstrap/src/bin/main.rs
@@ -143,7 +143,7 @@ fn check_version(config: &Config) -> Option<String> {
143
"update `config.toml` to use `change-id = {latest_change_id}` instead"
144
));
145
146
- if io::stdout().is_terminal() {
+ if io::stdout().is_terminal() && !config.dry_run() {
147
t!(fs::write(warned_id_path, latest_change_id.to_string()));
148
}
149
src/bootstrap/src/core/config/config.rs
@@ -1741,7 +1741,7 @@ impl Config {
1741
config
1742
1743
1744
- pub(crate) fn dry_run(&self) -> bool {
+ pub fn dry_run(&self) -> bool {
1745
match self.dry_run {
1746
DryRun::Disabled => false,
1747
DryRun::SelfCheck | DryRun::UserSelected => true,
0 commit comments