[Homebrew] Mention ripgrep in dependencies #3399

Closed
opened 2026-02-16 17:39:56 -05:00 by yindo · 3 comments
Owner

Originally created by @vanyauhalin on GitHub (Dec 8, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

OpenCode depends on ripgrep, but this dependency is not declared in the Homebrew formula. This is a problem because Homebrew provides the brew leaves command to list formulae that are not dependencies of any other formulae. Users expect that uninstalling any formula from this list will not break others. However, in the current state, uninstalling ripgrep will break OpenCode.

OpenCode Version

1.0.134

Solution

Add this line:

depends_on "ripgrep"

https://github.com/Homebrew/homebrew-core/blob/c6c4dab22e95594d71d6fa0b3582d0c0ccd59b40/Formula/o/opencode.rb

Originally created by @vanyauhalin on GitHub (Dec 8, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description OpenCode depends on ripgrep, but this dependency is not declared in the Homebrew formula. This is a problem because Homebrew provides the `brew leaves` command to list formulae that are not dependencies of any other formulae. Users expect that uninstalling any formula from this list will not break others. However, in the current state, uninstalling ripgrep will break OpenCode. ### OpenCode Version 1.0.134 ### Solution Add this line: ```rb depends_on "ripgrep" ``` https://github.com/Homebrew/homebrew-core/blob/c6c4dab22e95594d71d6fa0b3582d0c0ccd59b40/Formula/o/opencode.rb
yindo closed this issue 2026-02-16 17:39:56 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 8, 2025):

This issue might be a duplicate of or related to existing issues. Please check:

  • #4420: Docs don't say you need ripgrep installed, but edit prompt says all opencode users have it installed

The #4420 issue discusses the same dependency (ripgrep) not being documented as a requirement, though it approaches it from a documentation perspective rather than the Homebrew formula dependency declaration.

@github-actions[bot] commented on GitHub (Dec 8, 2025): This issue might be a duplicate of or related to existing issues. Please check: - #4420: Docs don't say you need ripgrep installed, but edit prompt says all opencode users have it installed The #4420 issue discusses the same dependency (ripgrep) not being documented as a requirement, though it approaches it from a documentation perspective rather than the Homebrew formula dependency declaration.
Author
Owner

@rekram1-node commented on GitHub (Dec 8, 2025):

https://github.com/Homebrew/homebrew-core/pull/257804

@rekram1-node commented on GitHub (Dec 8, 2025): https://github.com/Homebrew/homebrew-core/pull/257804
Author
Owner

@rekram1-node commented on GitHub (Dec 9, 2025):

merged^

@rekram1-node commented on GitHub (Dec 9, 2025): merged^
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3399