Add support for Apple Silicon Homebrew installation paths#199
Conversation
On Apple Silicon Macs, Homebrew installs to /opt/homebrew instead of /usr/local. The sandbox profile was missing this path, causing sandbox-exec to fail with exit code 134 when running Homebrew-installed agents like opencode. - Add /opt/homebrew to MACOS_SYSTEM_DIRS for read-only access - Add /opt/homebrew/bin to OpenCode agent's binaryPaths Fixes #152
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughTwo configuration files updated to support Apple Silicon macOS systems by adding the Homebrew installation path '/opt/homebrew' and its binary subdirectory to the OpenCode agent's sandbox requirements and the sandbox wrapper's macOS system directories list. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #199 +/- ##
=======================================
Coverage 44.85% 44.86%
=======================================
Files 78 78
Lines 22872 22873 +1
=======================================
+ Hits 10260 10261 +1
Misses 12612 12612
🚀 New features to boost your workflow:
|
…35tWL Add support for Apple Silicon Homebrew installation paths
Summary
This PR adds support for Apple Silicon (ARM64) Homebrew installations by including the
/opt/homebrewdirectory in both the OpenCode agent plugin's binary search paths and the sandbox wrapper's macOS system directories.Changes
/opt/homebrew/binto thebinaryPathsarray to allow the agent to discover binaries installed via Homebrew on Apple Silicon Macs/opt/homebrewtoMACOS_SYSTEM_DIRSto permit sandbox access to the Apple Silicon Homebrew prefix directoryDetails
Apple Silicon Macs use
/opt/homebrewas the default Homebrew installation prefix (instead of/usr/localon Intel Macs). These changes ensure that:This improves compatibility and user experience for developers using Apple Silicon Macs.
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.