Skip to content

fix: stop swallowing nix output on non-concurrent builds - #393

Merged
Sereja313 merged 1 commit into
masterfrom
sereja/fix-build-output
Aug 8, 2026
Merged

fix: stop swallowing nix output on non-concurrent builds#393
Sereja313 merged 1 commit into
masterfrom
sereja/fix-build-output

Conversation

@Sereja313

@Sereja313 Sereja313 commented Aug 8, 2026

Copy link
Copy Markdown
Member

Problem: Command::run goes through tokio::process::Command::output, which forces both stdout and stderr to piped regardless of the explicit Stdio::inherit() set right before it. So local and single remote host builds (no progress bar) silently captured nix's live build log, including --log-format internal-json output, and discarded it on success, breaking pipes into nix-output-monitor/nom.

Solution: Spawn the build command directly and read it back with Child::wait_with_output, which only reads the pipes that were actually configured. stdout stays piped for the realised output path, stderr stays inherited so nix's native output streams straight through.

fixes #386

Problem: `Command::run` goes through `tokio::process::Command::output`,
which forces both stdout and stderr to piped regardless of the explicit
`Stdio::inherit()` set right before it. So local and single remote host
builds (no progress bar) silently captured nix's live build log,
including --log-format internal-json output, and discarded it on
success, breaking pipes into nix-output-monitor/nom.

Solution: Spawn the build command directly and read it back with
`Child::wait_with_output`, which only reads the pipes that were
actually configured. stdout stays piped for the realised output path,
stderr stays inherited so nix's native output streams straight through.
@Sereja313 Sereja313 mentioned this pull request Aug 8, 2026
@Sereja313
Sereja313 merged commit 4dcc87b into master Aug 8, 2026
14 checks passed
@Sereja313
Sereja313 deleted the sereja/fix-build-output branch August 8, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

piping into nom broke?

1 participant