fix(brew): install app from service context - #45
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 23 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Comment |
There was a problem hiding this comment.
Pull request overview
This PR updates the Homebrew formula to work around Homebrew 6’s sandboxing of post_install by moving the “copy Microbridge.app into ~/Applications with a marker” behavior into a service-time wrapper script executed in the user session.
Changes:
- Remove the
post_installapproach and install alibexec/microbridge-servicewrapper duringinstall. - Update the Homebrew
serviceto run the wrapper instead of callingmicrobridgeddirectly. - Update caveats and tweak the formula test assertion style.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| source_app="#{opt_prefix}/Microbridge.app" | ||
| apps_dir="${HOME}/Applications" | ||
| dest="${apps_dir}/Microbridge.app" | ||
| marker="${dest}/.microbridge-brew" | ||
| /bin/mkdir -p "${apps_dir}" |
| test do | ||
| assert_match "Usage", shell_output("#{bin}/microbridgectl help") | ||
| assert_predicate prefix/"Microbridge.app", :exist? | ||
| assert_path_exists prefix/"Microbridge.app" | ||
| end |
Homebrew 6 sandboxes formula post-install hooks and blocks writes to the user Applications directory. Install a marker-guarded service wrapper in the Cellar so
brew services start microbridgecopies the app in the user session before starting the daemon.\n\nValidated locally with the published v0.2.0 archives: wrapper installed, marker created, and app version reported 0.2.0.