From fd96853ab6d8a1e93429b8348d947f9ebc614d47 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 08:27:03 +0000 Subject: [PATCH 1/2] Initial plan From d896f45a79f6ea9294389e4cc10be988d0bcedf8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 09:44:23 +0000 Subject: [PATCH 2/2] fix(opencode.ai): add local arch, apt_get_cleanup, version check test, bump to 1.0.7 Agent-Logs-Url: https://github.com/devcontainer-community/devcontainer-features/sessions/afd98687-ece6-400b-b19f-8c38d4737274 Co-authored-by: sebst <592313+sebst@users.noreply.github.com> --- README.md | 2 +- src/opencode.ai/devcontainer-feature.json | 2 +- src/opencode.ai/install.sh | 7 ++++--- test/opencode.ai/test.sh | 3 +-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8b107ca..3a85328 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ | [nixos.org](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/nixos.org) | `nix` — the Nix package manager | curl | 1.0.2 | | [nvidia.com/cuda](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/nvidia.com-cuda) | NVIDIA CUDA Toolkit for GPU computing | curl | 1.0.2 | | [onecli.sh/cli](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/onecli.sh-cli) | `onecli` — manage agents, secrets, rules, and configuration from the terminal | gh release | 1.0.3 | -| [opencode.ai](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/opencode.ai) | `opencode` — AI coding agent in the terminal | gh release | 1.0.6 | +| [opencode.ai](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/opencode.ai) | `opencode` — AI coding agent in the terminal | gh release | 1.0.7 | | [pi.dev](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/pi.dev) | `pi` — minimal terminal coding harness | gh release | 1.0.3 | | [pkgx.sh](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/pkgx.sh) | `pkgx` — run any package without installing | curl | 1.0.2 | | [pulumi.com](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/pulumi.com) | `pulumi` — infrastructure as code in any language | gh release | 1.0.3 | diff --git a/src/opencode.ai/devcontainer-feature.json b/src/opencode.ai/devcontainer-feature.json index 0aec331..412606d 100644 --- a/src/opencode.ai/devcontainer-feature.json +++ b/src/opencode.ai/devcontainer-feature.json @@ -1,7 +1,7 @@ { "name": "opencode.ai", "id": "opencode.ai", - "version": "1.0.6", + "version": "1.0.7", "description": "Install \"opencode\" binary", "documentationURL": "https://github.com/devcontainer-community/devcontainer-features/tree/main/src/opencode.ai", "options": { diff --git a/src/opencode.ai/install.sh b/src/opencode.ai/install.sh index 65e799b..45415ff 100755 --- a/src/opencode.ai/install.sh +++ b/src/opencode.ai/install.sh @@ -73,14 +73,14 @@ curl_download_tarball() { rm "$temp_file" } debian_get_arch() { + local arch arch=$(uname -m) if [[ "$arch" == "aarch64" ]]; then - arch="arm64" + arch="arm64" elif [[ "$arch" == "x86_64" ]]; then - arch="x64" + arch="x64" fi echo "$arch" -# echo "$(dpkg --print-architecture)" --- IGNORE --- } echo_banner() { local text="$1" @@ -140,6 +140,7 @@ install() { readonly binaryTargetPath="${binaryTargetFolder}/${binaryName}" curl_download_tarball "$downloadUrl" "$binaryTargetFolder" chmod 755 "$binaryTargetPath" + apt_get_cleanup } echo_banner "devcontainer.community" echo "Installing $name..." diff --git a/test/opencode.ai/test.sh b/test/opencode.ai/test.sh index 2d6d862..e6be1b5 100755 --- a/test/opencode.ai/test.sh +++ b/test/opencode.ai/test.sh @@ -12,8 +12,7 @@ source dev-container-features-test-lib # The 'check' command comes from the dev-container-features-test-lib. Syntax is... # check