split outputs

This commit is contained in:
Daylin Morgan 2024-10-30 22:01:21 -05:00
parent 42933ae97c
commit f17c9fde3f
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -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"