Skip to content

Fix curl install test: use POSIX-compatible set flags#1761

Open
yahanxing-stripe wants to merge 1 commit into
masterfrom
yx-0708-1
Open

Fix curl install test: use POSIX-compatible set flags#1761
yahanxing-stripe wants to merge 1 commit into
masterfrom
yx-0708-1

Conversation

@yahanxing-stripe

Copy link
Copy Markdown
Contributor

Summary

  • Replace set -euo pipefail with set -eu in scripts/install.shpipefail is a bash extension unsupported by dash (Ubuntu's /bin/sh), which caused the curl-install-linux CI job to exit with code 2
  • Initialize NEEDS_SOURCE=false to prevent unset variable errors under set -u
  • Re-add curl-install-test.yml workflow (removed by the revert in Revert "Add CI workflow for curl-based install script" #1755)

Test plan

  • Trigger curl-install-test.yml via workflow_dispatch after merge
  • Verify both curl-install-linux and curl-install-macos jobs pass
  • Locally: sh scripts/install.sh completes without errors on macOS

🤖 Generated with Claude Code

The install script used `set -euo pipefail` under `#!/bin/sh`, but
`pipefail` is a bash extension unsupported by dash (Ubuntu's /bin/sh),
causing the CI job to exit with code 2. Switch to `set -eu` which is
POSIX-compliant. Also initialize NEEDS_SOURCE=false to prevent unset
variable errors under `set -u`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
@yahanxing-stripe yahanxing-stripe requested a review from a team as a code owner July 8, 2026 22:53
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