From 7b8cbe4f1ca1d870b2bb2196d8c3a4bc2a978f55 Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Fri, 30 Aug 2024 22:56:11 +0300 Subject: [PATCH] handle dry-run mode in `Config::get_builder_toml` Signed-off-by: onur-ozkan --- src/bootstrap/src/core/config/config.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs index 8f7195aba9a8c..68b42305fdcc8 100644 --- a/src/bootstrap/src/core/config/config.rs +++ b/src/bootstrap/src/core/config/config.rs @@ -1217,6 +1217,10 @@ impl Config { } pub(crate) fn get_builder_toml(&self, build_name: &str) -> Result { + if self.dry_run() { + return Ok(TomlConfig::default()); + } + let builder_config_path = self.out.join(self.build.triple).join(build_name).join(BUILDER_CONFIG_FILENAME); Self::get_toml(&builder_config_path)