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:
parent
6d881a9946
commit
38aba2cb19
@ -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 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;
|
return None;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -144,7 +144,7 @@ fn check_version(config: &Config) -> Option<String> {
|
|||||||
));
|
));
|
||||||
|
|
||||||
if io::stdout().is_terminal() {
|
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 {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user