You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
write .last-warned-change-id only if environment is tty
As the .last-warned-change-id is only used for change tracking,
we don't need to generate/write it outside of the tty.
Otherwise, rust-analyzer could create this file, and developers
wouldn't be able to see the bootstrap change alerts, assuming
that they have already seen them.
Signed-off-by: onur-ozkan <[email protected]>
"update `config.toml` to use `change-id = {latest_change_id}` instead"
141
144
));
142
145
143
-
t!(fs::write(warned_id_path, id.to_string()));
146
+
if io::stdout().is_terminal(){
147
+
t!(fs::write(warned_id_path, id.to_string()));
148
+
}
144
149
}
145
150
}else{
146
151
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");
0 commit comments