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,7 +265,14 @@ async fn run_command(
.collect::<Vec<_>>();
if !errors.is_empty() {
return Err(FlakeInfoError::Group(errors));
if exports.is_empty() {
return Err(FlakeInfoError::Group(errors));
}
warn!("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=");
warn!("Some group members could not be evaluated: {}", FlakeInfoError::Group(errors));
warn!("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=");
}
let hash = {