Skip to content

Commit 0f002af

Browse files
konardclaude
andcommitted
fix(core): pin opencode version to avoid GitHub API rate limit failures
Pin opencode to version 1.2.27 by passing --version flag to the install script. Without a pinned version, the installer fetches the latest version from the GitHub API (api.github.com/repos/anomalyco/opencode/releases/latest), which fails with "Failed to fetch version information" when rate-limited or network-throttled during Docker builds in CI. This is the root cause of the E2E (Clone cache) CI failure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7b155d9 commit 0f002af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/lib/src/core/templates/dockerfile.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ RUN claude --version
6464
RUN npm install -g @google/gemini-cli@latest --force
6565
RUN gemini --version`
6666

67+
const openCodeVersion = "1.2.27"
68+
6769
const renderDockerfileOpenCode = (): string =>
6870
`# Tooling: OpenCode (binary)
6971
RUN set -eu; \
7072
for attempt in 1 2 3 4 5; do \
7173
if curl -fsSL --retry 5 --retry-all-errors --retry-delay 2 https://opencode.ai/install \
72-
| HOME=/usr/local bash -s -- --no-modify-path; then \
74+
| HOME=/usr/local bash -s -- --version ${openCodeVersion} --no-modify-path; then \
7375
exit 0; \
7476
fi; \
7577
echo "opencode install attempt \${attempt} failed; retrying..." >&2; \

0 commit comments

Comments
 (0)