use the change-id from source instead of the one from config.tom

This fixes the problem of not being able to see bootstrap config
changes unless the change-id in config.toml changes.

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2023-11-23 23:54:15 +03:00
parent 6d881a9946
commit 38aba2cb19

View File

@ -120,7 +120,7 @@ fn check_version(config: &Config) -> Option<String> {
}
if let Ok(last_warned_id) = fs::read_to_string(&warned_id_path) {
if id.to_string() == last_warned_id {
if latest_change_id.to_string() == last_warned_id {
return None;
}
}
@ -144,7 +144,7 @@ fn check_version(config: &Config) -> Option<String> {
));
if io::stdout().is_terminal() {
t!(fs::write(warned_id_path, id.to_string()));
t!(fs::write(warned_id_path, latest_change_id.to_string()));
}
}
} else {