From f2d540efc20282cf1a1d38561e2a2e599794dfc3 Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Wed, 9 Apr 2025 14:07:36 -0400 Subject: [PATCH] skip non-kcl --- rust/kcl-lib/src/walk/import_graph.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rust/kcl-lib/src/walk/import_graph.rs b/rust/kcl-lib/src/walk/import_graph.rs index 8cedde750..63884a385 100644 --- a/rust/kcl-lib/src/walk/import_graph.rs +++ b/rust/kcl-lib/src/walk/import_graph.rs @@ -185,10 +185,9 @@ pub(crate) async fn import_universe( })); }; let ModuleRepr::Kcl(program, _) = &module_info.repr else { - return Err(KclError::Internal(KclErrorDetails { - message: format!("Module {} is not a KCL module", module_id), - source_ranges: vec![import_stmt.into()], - })); + // if it's not a KCL module we can skip it since it has no + // dependencies. + continue; }; program.clone() };