Skip to content

fix: run skulk ship's PR script without pipefail so dash can run it - #109

Merged
frantufro merged 1 commit into
mainfrom
fix/ship-without-pipefail
Nov 30, 2026
Merged

frantufro merged 1 commit into
mainfrom
fix/ship-without-pipefail

Conversation

@frantufro

Copy link
Copy Markdown
Owner

CI on #108 failed on Ubuntu 22.04: the new localhost-mode test ran ship_command under dash, which lacks set -o pipefail.

The diff now goes to a temp file that claude -p reads, so set -e alone stops on a failing git diff and the script is plain POSIX sh. Tests updated, plus coverage for the failing-diff path.

🤖 Generated with Claude Code

ship_command started with `set -o pipefail`, which dash before 0.5.12
(Ubuntu 22.04's /bin/sh) rejects. In localhost mode the script runs under
/bin/sh, so ship failed there after pushing the branch. The diff now goes
to a temp file that claude reads, so `set -e` alone stops on a failing
`git diff`, and the script is plain POSIX sh.

Tests run the real script under dash (or /bin/sh where dash is missing):
it opens the PR from the branch diff, and stops before claude and gh when
git diff fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@frantufro
frantufro merged commit 9af98ab into main Nov 30, 2026
10 checks passed
@frantufro
frantufro deleted the fix/ship-without-pipefail branch November 30, 2026 18:32
@frantufro frantufro mentioned this pull request Nov 30, 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.

1 participant