Skip to content

Commit f736315

Browse files
fix: correct opencode binary source repository (#77)
* Initial plan * fix: update opencode to use anomalyco repository The opencode GitHub releases moved from sst/opencode to anomalyco/opencode. Updated the REPO_OWNER to point to the correct repository where Linux binaries are actually published. Also fixed the fallback version resolution to prevent script exit on failure. Co-authored-by: jsburckhardt <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jsburckhardt <[email protected]>
1 parent 42b851e commit f736315

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/opencode/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "OpenCode",
33
"id": "opencode",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"description": "AI coding agent, built for the terminal. An open-source alternative to Claude Code with support for multiple LLM providers.",
66
"documentationURL": "https://opencode.ai/docs",
77
"options": {

src/opencode/install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
# Variables
4-
REPO_OWNER="sst"
4+
REPO_OWNER="anomalyco"
55
REPO_NAME="opencode"
66
OPENCODE_VERSION="${VERSION:-"latest"}"
77

@@ -26,7 +26,7 @@ check_packages() {
2626
fi
2727
}
2828

29-
# Make sure we have curl, ca-certificates, and tar
29+
# Make sure we have curl, ca-certificates, tar, and jq
3030
check_packages curl ca-certificates tar jq
3131

3232
echo "Installing OpenCode version: $OPENCODE_VERSION"
@@ -96,14 +96,14 @@ resolve_latest_version_fallback() {
9696
fi
9797

9898
echo "Failed to resolve version from HTML, using known fallback version..." >&2
99-
echo "1.0.107" # Known recent version as last resort
99+
echo "1.0.223" # Known recent version as last resort
100100
return 1
101101
}
102102

103103
# Resolve version
104104
if [ "$OPENCODE_VERSION" = "latest" ]; then
105105
if ! RESOLVED_VERSION=$(resolve_latest_version); then
106-
RESOLVED_VERSION=$(resolve_latest_version_fallback)
106+
RESOLVED_VERSION=$(resolve_latest_version_fallback) || true
107107
fi
108108
echo "Resolved latest version to: $RESOLVED_VERSION"
109109
OPENCODE_VERSION="$RESOLVED_VERSION"

0 commit comments

Comments
 (0)