nix3-build does not show failed build logs correctly (regression) #1055

Open
opened 2025-11-30 12:36:17 +00:00 by qyriad · 3 comments
Owner

Repro:

nix build -f ./bad.nix --keep-going --print-build-logs --option log-lines 2 --no-link 2>&1  | rg "build of '.+failed"

bad.nix:

let
  inherit (import <nixpkgs> { }) runCommand;
in {
  alpha = runCommand "alpha" { } "touch $out && exit 4";
  beta = runCommand "beta" { } "echo death && exit 2";
}

The "build of '/nix/store/….drv' failed` line is missing in recent versions. We are currently bisecting.

Thanks to @yu-re-ka for reporting on Matrix.

Repro: ```bash nix build -f ./bad.nix --keep-going --print-build-logs --option log-lines 2 --no-link 2>&1 | rg "build of '.+failed" ``` bad.nix: ```nix let inherit (import <nixpkgs> { }) runCommand; in { alpha = runCommand "alpha" { } "touch $out && exit 4"; beta = runCommand "beta" { } "echo death && exit 2"; } ``` The "build of '/nix/store/….drv' failed` line is missing in recent versions. We are currently bisecting. Thanks to @yu-re-ka for reporting on Matrix.
qyriad self-assigned this 2025-11-30 12:36:22 +00:00
Owner

it's there on nix (Lix, like Nix) 2.95.0-pre20251120-dev_dd3ba39 fwiw

it's there on `nix (Lix, like Nix) 2.95.0-pre20251120-dev_dd3ba39` fwiw
Author
Owner

Oh fuck it's inconsistent. Sometimes it happens and not others

Oh fuck it's inconsistent. Sometimes it happens and not others
Author
Owner

Okay I can seemingly reproduce this on 2.93.3 as well but yureka said she only started seeing it recently so now I'm very confused

Okay I can seemingly reproduce this on 2.93.3 as well but yureka said she only started seeing it recently so now I'm very confused
pennae added this to the 2.97 milestone 2025-12-01 14:51:11 +00:00
pennae modified the milestone from 2.97 to 2.95 2025-12-01 14:52:00 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#1055
No description provided.