Skip to content

Fix SIGPIPE (exit 141) in install verification block#77

Draft
Copilot wants to merge 3 commits into
masterfrom
copilot/fix-github-actions-workflow
Draft

Fix SIGPIPE (exit 141) in install verification block#77
Copilot wants to merge 3 commits into
masterfrom
copilot/fix-github-actions-workflow

Conversation

Copilot AI commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

Tools like terraform --version emit multiple lines. Piping through head -1 closes the read end of the pipe early, delivering SIGPIPE to the producer — fatal under set -eo pipefail (exit 141).

Changes

  • install.d/30-mise.sh: Replace | head -1 with | sed -n '1p' for terraform, fastfetch, rg, and delta version checks; add comment explaining the reason
# head -1 exits early → SIGPIPE → exit 141 under pipefail
mise exec -- terraform --version | head -1   # before

# sed consumes all input before exiting → no SIGPIPE
mise exec -- terraform --version | sed -n '1p'  # after
Original prompt

Fix the failing GitHub Actions workflow Run test suite (Dockerfile)
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 64561145085
Job URL: https://github.com/andrejusk/dotfiles/actions/runs/22316048416/job/64561145085


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…-mise.sh

Co-authored-by: andrejusk <7396847+andrejusk@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow for test suite Fix SIGPIPE (exit 141) in Dockerfile install caused by head -1 in version checks Feb 23, 2026
…lock

Co-authored-by: andrejusk <7396847+andrejusk@users.noreply.github.com>
Copilot AI changed the title Fix SIGPIPE (exit 141) in Dockerfile install caused by head -1 in version checks Fix SIGPIPE (exit 141) in install verification block Feb 23, 2026
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.

2 participants