From f17c9fde3fff9be4051d7c8bdeddd1d2e3eff8d0 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 30 Oct 2024 22:01:21 -0500 Subject: [PATCH] split outputs --- pkgs/oizys/src/oizys/nix.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/oizys/src/oizys/nix.nim b/pkgs/oizys/src/oizys/nix.nim index ce8fa9c..1af5643 100644 --- a/pkgs/oizys/src/oizys/nix.nim +++ b/pkgs/oizys/src/oizys/nix.nim @@ -254,10 +254,11 @@ proc nixBuildWithCache*(name: string, rest:seq[string], service: string, jobs: i cmd.addArgs rest let (path, _, buildCode) = runCmdCapt(cmd) if buildCode != 0: + # TODO: propagate errors using nix log? error "failed to build: " & drv continue - outs.add path.strip() - # TODO: propagate errors using nix log? + + outs &= path.strip().splitLines() var cmd = service cmd.addArg "push"