Skip to content

Commit

Permalink
Append new/unknown packages from included files (#165)
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 authored Jun 2, 2024
1 parent d38a5dd commit e262fa9
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 e262fa9

Please sign in to comment.