Homebrew tap name and auto-update migration #4167

Open
opened 2026-02-16 17:42:52 -05:00 by yindo · 4 comments
Owner

Originally created by @gtarraga on GitHub (Jan 4, 2026).

Originally assigned to: @rekram1-node on GitHub.

Question

The new repo migration change (sst/opencode -> anomalyco/opencode) should have also updated the brew tap formula name:
https://github.com/anomalyco/opencode/blob/dc25669b6e14ee7730ae9ab5d3d5e876e2111fb0/packages/opencode/src/installation/index.ts#L113-L119

I'd assume people aren't necessarily on this new tap name (anomalyco/tap), should we might want to consider auto migrating old tap users to the new one.
Another thing worth mentioning is the recent throttling of the core homebrew formula to only every 10 versions. Maybe worth discussing a migration strategy to using the new tap instead.

If there's a strategy that's already been decided I don't mind doing a quick PR with the changes.

Originally created by @gtarraga on GitHub (Jan 4, 2026). Originally assigned to: @rekram1-node on GitHub. ### Question The new repo migration change (`sst/opencode` -> `anomalyco/opencode`) should have also updated the brew tap formula name: https://github.com/anomalyco/opencode/blob/dc25669b6e14ee7730ae9ab5d3d5e876e2111fb0/packages/opencode/src/installation/index.ts#L113-L119 I'd assume people aren't necessarily on this new tap name (`anomalyco/tap`), should we might want to consider auto migrating old tap users to the new one. Another thing worth mentioning is the recent throttling of the core homebrew formula to only every 10 versions. Maybe worth discussing a migration strategy to using the new tap instead. If there's a strategy that's already been decided I don't mind doing a quick PR with the changes.
Author
Owner

@rekram1-node commented on GitHub (Jan 4, 2026):

yeah these are both good ideas, any prs are welcome

@rekram1-node commented on GitHub (Jan 4, 2026): yeah these are both good ideas, any prs are welcome
Author
Owner

@lucasyvas commented on GitHub (Jan 8, 2026):

Is this realted to why the latest version on homebrew core is still 1.0.220?

Edit: Nevermind - it's always behind, which I don't mind, but soon: https://github.com/Homebrew/homebrew-core/pull/261836#issuecomment-3724198236

@lucasyvas commented on GitHub (Jan 8, 2026): Is this realted to why the latest version on homebrew core is still `1.0.220`? Edit: Nevermind - it's always behind, which I don't mind, but soon: https://github.com/Homebrew/homebrew-core/pull/261836#issuecomment-3724198236
Author
Owner

@gtarraga commented on GitHub (Jan 10, 2026):

Just tried updating my opencode version and got an error, it tried to update it using the homebrew/core formula despite actually having the anomalyco/tap installed.

This is because old versions will try to check for sst/tap while having anomalyco/tap (or viceversa) and it'll fallback to the core formula. This is also being fixed in the PR.

❯ opencode upgrade

                                   ▄
  █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
  █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀
  ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀  ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀

┌  Upgrade
│
●  Using method: brew
│
●  From 1.0.223 → 1.1.10
│
■  Upgrade failed
│
■  Error: opencode was installed from the anomalyco/tap tap
│  but you are trying to install it from the homebrew/core tap.
│  Formulae with the same name from different taps cannot be installed at the same time.
│
│  To install this version, you must first uninstall the existing formula:
│    brew uninstall opencode
│  Then you can install the desired version:
│    brew install opencode
│
│
└  Done
@gtarraga commented on GitHub (Jan 10, 2026): Just tried updating my opencode version and got an error, it tried to update it using the homebrew/core formula despite actually having the anomalyco/tap installed. This is because old versions will try to check for sst/tap while having anomalyco/tap (or viceversa) and it'll fallback to the core formula. This is also being fixed in the PR. ```bash ❯ opencode upgrade   ▄ █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ┌ Upgrade │ ● Using method: brew │ ● From 1.0.223 → 1.1.10 │ ■ Upgrade failed │ ■ Error: opencode was installed from the anomalyco/tap tap │ but you are trying to install it from the homebrew/core tap. │ Formulae with the same name from different taps cannot be installed at the same time. │ │ To install this version, you must first uninstall the existing formula: │ brew uninstall opencode │ Then you can install the desired version: │ brew install opencode │ │ └ Done ```
Author
Owner

@Judahmeek commented on GitHub (Jan 12, 2026):

Image

Upgrading a homebrew install from inside opencode is still broken.

Thankfully, brew upgrade opencode works correctly.

@Judahmeek commented on GitHub (Jan 12, 2026): <img width="394" height="520" alt="Image" src="https://github.com/user-attachments/assets/b8e55e14-6f00-42c6-8a5a-050791fe94fb" /> Upgrading a homebrew install from inside opencode is still broken. Thankfully, `brew upgrade opencode` works correctly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4167