Repository navigation
fix: run skulk ship's PR script without pipefail so dash can run it - #109
Merged
Merged
Conversation
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>
Merged
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.
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 -preads, soset -ealone stops on a failinggit diffand the script is plain POSIX sh. Tests updated, plus coverage for the failing-diff path.🤖 Generated with Claude Code