Make the linked Homebrew OpenCode build the only OpenCode install #17

Merged
hermes merged 5 commits from fm/opencode-retire-v1 into main 2026-11-08 18:55:48 -05:00
Showing only changes of commit 78f2928132 - Show all commits
+2 -2
View File
@@ -19,8 +19,8 @@ fi
# Remove retired npm OpenCode installs if an older rebuild installed them: # Remove retired npm OpenCode installs if an older rebuild installed them:
# the `@opencode-ai/cli` beta and the older `opencode-ai` CLI. The Homebrew # the `@opencode-ai/cli` beta and the older `opencode-ai` CLI. The Homebrew
# `opencode` formula declared in configuration.nix is now the only OpenCode # `opencode` formula declared in configuration.nix is now the only OpenCode
# install, unpinned so it tracks the latest release. Local check only, so an # install, unpinned so it tracks the latest release. The guard is a local check
# offline rebuild skips this instead of failing. # for npm, so a rebuild without npm skips this instead of failing.
NPM=/opt/homebrew/bin/npm NPM=/opt/homebrew/bin/npm
if [ -x "$NPM" ] && npm_root="$("$NPM" root -g 2>/dev/null)"; then if [ -x "$NPM" ] && npm_root="$("$NPM" root -g 2>/dev/null)"; then
for pkg in @opencode-ai/cli opencode-ai; do for pkg in @opencode-ai/cli opencode-ai; do