Skip to content

Commit

Permalink
Append new/unknown packages from included files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SuperTux88 committed Feb 25, 2024
1 parent b1bf261 commit 523646a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,8 @@ fn merge_configuration_files(
}

if !included.is_empty() {
anyhow::bail!(
"unknown packages: {:?}",
included.keys().cloned().collect::<Vec<_>>()
);
debug!("append unknown packages: {:?}", included.keys());
global.packages.append(&mut included);
}

Ok(())
Expand Down

0 comments on commit 523646a

Please sign in to comment.