From 9e018c36da3a3a29d28a19ac368ea6791e7fe23b Mon Sep 17 00:00:00 2001 From: Yannik Sander Date: Thu, 30 Sep 2021 20:24:35 +0200 Subject: [PATCH] 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 --- flake-info/src/bin/flake-info.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/flake-info/src/bin/flake-info.rs b/flake-info/src/bin/flake-info.rs index 394d4ff..21b8200 100644 --- a/flake-info/src/bin/flake-info.rs +++ b/flake-info/src/bin/flake-info.rs @@ -265,7 +265,14 @@ async fn run_command( .collect::>(); 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 = {