From 8980398e73392a4d3935839d36bf9e2fa620aae5 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 3 Sep 2024 15:08:24 -0500 Subject: [PATCH] fix dry run parsing --- pkgs/oizys-nim/src/oizys/nix.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/oizys-nim/src/oizys/nix.nim b/pkgs/oizys-nim/src/oizys/nix.nim index 129f464..edcbfa8 100644 --- a/pkgs/oizys-nim/src/oizys/nix.nim +++ b/pkgs/oizys-nim/src/oizys/nix.nim @@ -66,11 +66,11 @@ proc parseDryRunOutput(err: string): DryRunOutput = of 1: let idx = theseLines[0] let line = lines[idx] - let drvs = lines[idx .. ^1].toDerivations() + let drvs = lines[idx + 1 .. ^1].toDerivations() if line.contains("built:"): result.toBuild = drvs elif line.contains("will be fetched"): - result.toFetch =drvs + result.toFetch = drvs else: fatal "expected on of the lines to contain built or fetched check the output below" stderr.writeLine err