From 207d370fd97a51a0449bd0df9317575e2064976b Mon Sep 17 00:00:00 2001 From: mdecimus Date: Thu, 29 May 2025 19:24:29 +0200 Subject: [PATCH] Fix: Macro references are replaced with their content when writing config file (closes #1595) --- crates/common/src/manager/boot.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/common/src/manager/boot.rs b/crates/common/src/manager/boot.rs index 374dd13f..9ebfbdf6 100644 --- a/crates/common/src/manager/boot.rs +++ b/crates/common/src/manager/boot.rs @@ -153,6 +153,7 @@ impl BootManager { config.new_build_error("*", format!("Could not read configuration file: {err}")); } } + let cfg_local = config.keys.clone(); // Resolve environment macros config.resolve_macros(&["env"]).await; @@ -171,13 +172,11 @@ impl BootManager { let local_patterns = Patterns::parse(&mut config); // Build local keys and warn about database keys defined in the local configuration - let mut cfg_local = BTreeMap::new(); let mut warn_keys = Vec::new(); - for (key, value) in &config.keys { + for key in config.keys.keys() { if !local_patterns.is_local_key(key) { warn_keys.push(key.clone()); } - cfg_local.insert(key.clone(), value.clone()); } for warn_key in warn_keys { config.new_build_warning(