Don't fail import of groups as long as some imports succeed (#358)

* Don't fail import of groups as long as some imports succeed
This commit is contained in:
Yannik Sander 2021-09-30 20:24:35 +02:00 committed by GitHub
parent 4176d61bfc
commit 9e018c36da
Failed to generate hash of commit

View file

@ -265,8 +265,15 @@ async fn run_command(
.collect::<Vec<_>>(); .collect::<Vec<_>>();
if !errors.is_empty() { if !errors.is_empty() {
if exports.is_empty() {
return Err(FlakeInfoError::Group(errors)); return Err(FlakeInfoError::Group(errors));
} }
warn!("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=");
warn!("Some group members could not be evaluated: {}", FlakeInfoError::Group(errors));
warn!("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=");
}
let hash = { let hash = {
let mut sha = sha2::Sha256::new(); let mut sha = sha2::Sha256::new();