[PR #10118] fix: resolve homebrew upgrade requiring multiple runs (#5375) #13345

Closed
opened 2026-02-16 18:18:12 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10118

State: closed
Merged: Yes


Fixes #5375

The root cause was that for tap-installed formulas, version detection could fall back to a stale source and Homebrew’s auto-update behavior was being suppressed, so users wouldn’t always see the latest tap changes on the first run.

What does this PR do?

  • Remove HOMEBREW_NO_AUTO_UPDATE: Let brew auto-update taps before
    upgrading (default behavior)

  • Fix version detection for tap formulas: Use brew info --json=v2
    for tap formulas instead of falling back to npm registry

UPDATE:

  • Removing HOMEBREW_NO_AUTO_UPDATE updates all taps which is un-wanted.
  • Instead, we Manually git pull only the "anomalyco/tap" tap repo
  • Then run brew upgrade for the "anomalyco/tap/opencode"

How did you verify your code works?

Running the command bun run dev upgrade --print-logs

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10118 **State:** closed **Merged:** Yes --- Fixes #5375 The root cause was that for tap-installed formulas, version detection could fall back to a stale source and Homebrew’s auto-update behavior was being suppressed, so users wouldn’t always see the latest tap changes on the first run. ### What does this PR do? - **Remove HOMEBREW_NO_AUTO_UPDATE:** Let brew auto-update taps before upgrading (default behavior) - **Fix version detection for tap formulas:** Use `brew info --json=v2` for tap formulas instead of falling back to npm registry ### UPDATE: - Removing HOMEBREW_NO_AUTO_UPDATE updates all taps which is un-wanted. - Instead, we Manually `git pull` only the "anomalyco/tap" tap repo - Then run `brew upgrade` for the "anomalyco/tap/opencode" ### How did you verify your code works? Running the command `bun run dev upgrade --print-logs`
yindo added the pull-request label 2026-02-16 18:18:12 -05:00
yindo closed this issue 2026-02-16 18:18:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13345