handle dry-run mode in `Config::get_builder_toml`

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2024-08-30 22:56:11 +03:00
parent 13e16a9101
commit 7b8cbe4f1c
1 changed files with 4 additions and 0 deletions

View File

@ -1217,6 +1217,10 @@ impl Config {
}
pub(crate) fn get_builder_toml(&self, build_name: &str) -> Result<TomlConfig, toml::de::Error> {
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)