From 523646a9858fcfd2d44ec315678e8fb4cd271473 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sun, 25 Feb 2024 01:44:19 +0100 Subject: [PATCH] Append new/unknown packages from included files This way you can include additional packages from a different source and the main global.toml doesn't need to be aware of which packages you might want to include, the only reference to the include is in the local.toml. --- src/config.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index 5ce299b..86e4bc2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -282,10 +282,8 @@ fn merge_configuration_files( } if !included.is_empty() { - anyhow::bail!( - "unknown packages: {:?}", - included.keys().cloned().collect::>() - ); + debug!("append unknown packages: {:?}", included.keys()); + global.packages.append(&mut included); } Ok(())