From e85735207c2eb742a5f3601a199d57782b850331 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sat, 10 Mar 2018 09:14:47 -0500 Subject: [PATCH] Only try building attributes which can be evaluated --- ofborg/src/tasks/build.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ofborg/src/tasks/build.rs b/ofborg/src/tasks/build.rs index a1f9887..80298eb 100644 --- a/ofborg/src/tasks/build.rs +++ b/ofborg/src/tasks/build.rs @@ -266,13 +266,21 @@ impl notifyworker::SimpleNotifyWorker for BuildWorker { return; } - println!("Got path: {:?}, building", refpath); + println!("Got path: {:?}, determining which ones we can build ", refpath); + let (can_build, cannot_build) = self.nix.safely_partition_instantiable_attrs( + refpath.as_ref(), + buildfile, + job.attrs.clone(), + ); + println!("Can build: {}, Cannot build: {}", + can_build.join(", "), + cannot_build.join(", ")); let cmd = self.nix.safely_build_attrs_cmd( refpath.as_ref(), buildfile, - job.attrs.clone(), + can_build.clone(), ); actions.log_started();