Leave OpenCode unpinned so the linked brew build tracks latest
State the upgrade-on-rebuild behavior at the formula and drop version labels from the rebuild comments.
This commit is contained in:
1 parent
ac7888c9a5
commit
877ee5d163
2 files changed
+7
-5
No files matched your search
+4
-4
@@ -17,10 +17,10 @@ else
|
||||
fi
|
||||
|
||||
# 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 stable Homebrew `opencode` formula declared in configuration.nix is now
|
||||
# the only OpenCode install. Local check only, so an offline rebuild skips this
|
||||
# instead of failing.
|
||||
# the `@opencode-ai/cli` beta and the older `opencode-ai` CLI. The Homebrew
|
||||
# `opencode` formula declared in configuration.nix is now the only OpenCode
|
||||
# install, unpinned so it tracks the latest release. Local check only, so an
|
||||
# offline rebuild skips this instead of failing.
|
||||
NPM=/opt/homebrew/bin/npm
|
||||
if [ -x "$NPM" ] && npm_root="$("$NPM" root -g 2>/dev/null)"; then
|
||||
for pkg in @opencode-ai/cli opencode-ai; do
|
||||
|
||||
Reference in new issue
Block a user