Make the linked Homebrew OpenCode build the only OpenCode install #17
No files matched your search
+3
-1
@@ -55,7 +55,9 @@
|
|||||||
# connection is configured.
|
# connection is configured.
|
||||||
{ name = "libpq"; link = true; }
|
{ name = "libpq"; link = true; }
|
||||||
"node" # required: backpass and acpx are npm globals, not formulae
|
"node" # required: backpass and acpx are npm globals, not formulae
|
||||||
"opencode" # stable OpenCode 2; the crew harness and the oc2 binary
|
# Unpinned: onActivation.upgrade refreshes formulae each rebuild, so the
|
||||||
|
# linked binary tracks the latest opencode release. Crew harness and oc2.
|
||||||
|
"opencode"
|
||||||
"pi-coding-agent"
|
"pi-coding-agent"
|
||||||
"tea" # Gitea CLI - PRs for firstmate crewmates on unraid.local:3003
|
"tea" # Gitea CLI - PRs for firstmate crewmates on unraid.local:3003
|
||||||
"tmux"
|
"tmux"
|
||||||
|
|||||||
+4
-4
@@ -17,10 +17,10 @@ else
|
|||||||
fi
|
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 2 beta (@opencode-ai/cli) and the OpenCode 1.x CLI (opencode-ai).
|
# the `@opencode-ai/cli` beta and the older `opencode-ai` CLI. The Homebrew
|
||||||
# The stable Homebrew `opencode` formula declared in configuration.nix is now
|
# `opencode` formula declared in configuration.nix is now the only OpenCode
|
||||||
# the only OpenCode install. Local check only, so an offline rebuild skips this
|
# install, unpinned so it tracks the latest release. Local check only, so an
|
||||||
# instead of failing.
|
# offline rebuild 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
|
||||||
|
|||||||
Reference in new issue
Block a user