mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-02-02 15:04:18 -06:00
properly log failed build
This commit is contained in:
parent
a5a85aaf7f
commit
33780d99b8
1 changed files with 5 additions and 2 deletions
|
@ -339,10 +339,13 @@ proc build(drv: OizysDerivation, rest: seq[string]): BuildResult =
|
|||
cmd.addArg "--no-link"
|
||||
cmd.addArgs rest
|
||||
let buildCode = runCmd(cmd)
|
||||
result.successful = buildCode == 0
|
||||
result.duration = now() - startTime
|
||||
# TODO: make splitDrv more ergonmic?
|
||||
if buildCode == 0:
|
||||
result.successful = true
|
||||
info "succesfully built: " & splitDrv(drv.name).name
|
||||
else:
|
||||
warn "failed to build: " & splitDrv(drv.name).name
|
||||
info "-> duration: " & formatDuration(result.duration)
|
||||
|
||||
func outputsPaths(o: OizysDerivation): seq[string] =
|
||||
|
|
Loading…
Reference in a new issue