Skip to content

Commit

Permalink
use the change-id from source instead of the one from config.tom
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
onur-ozkan committed Nov 23, 2023
1 parent 6d9b92f commit 63a4410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap/src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -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 {
Expand Down

0 comments on commit 63a4410

Please sign in to comment.