Repository navigation
fix(test): parenthesize case patterns in darwin cross-compiler target - #9855
lloydmangnall wants to merge 2 commits into
Conversation
`install-deps-cross-compiler-darwin` fails on macOS with "syntax error near unexpected token `;;'" because /bin/sh (bash 3.2) cannot parse a `case` with unparenthesized patterns inside `$(...)`: the pattern's closing paren ends the command substitution early. Use the POSIX leading-paren pattern form so the recipe parses under macOS /bin/sh. This also unblocks `make setup` on Apple Silicon and the linux/arm64 half of `make install`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Description
make setup/make -C t install-deps-cross-compiler-darwinfails on macOS:macOS
/bin/shis bash 3.2, which can't parse acasewith unparenthesized patterns inside$(...): the pattern's)closes the command substitution early. Without the cross toolchain, the linux/arm64 half ofmake installthen fails withcgo: C compiler "aarch64-unknown-linux-gnu-gcc" not found.The fix uses the POSIX leading-paren form,
(arm64|aarch64)and(x86_64), which every POSIX shell accepts.Verified on macOS (Apple Silicon,
/bin/sh= GNU bash 3.2.57): the recipe frommake -nnow parses under/bin/sh -nand resolves toaarch64-unknown-linux-gnu. After installing the toolchain,make installbuilds bothdarwin/arm64andlinux/arm64binaries.Checklist
Conventional Commits syntax, leading
with
fix:,feat:,chore:,ci:, etc.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit