From c60d696d5c957b135441b1687dcb4511889ee43a Mon Sep 17 00:00:00 2001 From: cclohmar Date: Tue, 13 Oct 2026 08:25:35 +0000 Subject: [PATCH] docs: note how to pin OpenCode when upstream 'latest' is unpublished for linux-x64 adds a Quick Install callout: use --opencode-version V (with the registry dist-tags command) when the metadata advertises a version whose platform binary isn't published yet --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 69f950d..0a13298 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,16 @@ curl -fsSL https://git.lohmar.co.uk/cclohmar/NewOpenAgents/raw/branch/main/insta Even though the script arrives over a pipe, it is **interactive**: it reads your answers from the terminal (`/dev/tty`). In a non-terminal context (CI), it runs with safe defaults instead of prompting. +> **If OpenCode's `latest` build won't install** — e.g. `Version 2.0.28 is not available for linux-x64` (upstream publishes the version metadata before the platform binary) — pin the newest published build: +> +> ```bash +> curl -fsSL https://git.lohmar.co.uk/cclohmar/NewOpenAgents/raw/branch/main/install.sh \ +> | bash -s -- --opencode-version 2.0.27 +> ``` +> +> Find what's actually published with +> `curl -s https://registry.npmjs.org/-/package/@opencode/cli-linux-x64/dist-tags`. + ### Or clone, then install (recommended for updates) ```bash