Fix Homebrew "Broken pipe" failures during package install on WSL/Debian#569
Open
DevSecNinja with Copilot wants to merge 4 commits into
Open
Fix Homebrew "Broken pipe" failures during package install on WSL/Debian#569DevSecNinja with Copilot wants to merge 4 commits into
DevSecNinja with Copilot wants to merge 4 commits into
Conversation
Copilot
AI
changed the title
[WIP] Fix WSL Debian log output issue
Fix Homebrew "Broken pipe" failures during package install on WSL/Debian
Jul 10, 2026
DevSecNinja
marked this pull request as ready for review
July 10, 2026 13:52
DevSecNinja
enabled auto-merge (squash)
July 10, 2026 13:52
auto-merge was automatically disabled
July 10, 2026 15:06
Head branch was pushed to by a user without write access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On WSL/Debian, installs failed with
Error: Broken pipe. Homebrew's concurrent/threaded output can receiveSIGPIPEwhen its stdout is a command-substitution pipe ($(...)) rather than a TTY or regular file, aborting installs (e.g.microsoft/apm/apm).Changes
run_onchange_10-install-packages.sh.tmpl—brew_install_quiet,brew_install_cask_quiet, andmas_install_quietnow redirect install output to amktempfile instead of capturing it through a pipe; on failure the file is streamed intolog_data. The "only surface output on failure" behavior is unchanged.test-chezmoi-scripts.bats— added an assertion that output is captured via file redirection and no longer viaoutput=$(brew install ...).Writing to a regular file removes the pipe reader that could close early, eliminating the
SIGPIPE.