diff options
| author | onur-ozkan <work@onurozkan.dev> | 2023-11-23 23:54:15 +0300 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2023-11-24 23:14:21 +0300 |
| commit | 38aba2cb193cdde1a235a31f301842f950b55665 (patch) | |
| tree | ea083b9727391ab0de29ba30caca937b69b44b57 | |
| parent | 6d881a9946e18cd2ded346e6819332c63808e61c (diff) | |
| download | rust-38aba2cb193cdde1a235a31f301842f950b55665.tar.gz rust-38aba2cb193cdde1a235a31f301842f950b55665.zip | |
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>
| -rw-r--r-- | src/bootstrap/src/bin/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/src/bin/main.rs b/src/bootstrap/src/bin/main.rs index 35010bea818..f9b3ca2c3fb 100644 --- a/src/bootstrap/src/bin/main.rs +++ b/src/bootstrap/src/bin/main.rs @@ -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 { |
