Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 24, 2025

OpenCode releases changed asset format from .zip to .tar.gz, breaking installation with 404 errors.

Changes

  • Download URL: Changed asset extension from .zip to .tar.gz
  • Extraction: Replaced unzip -q with tar -xzf
  • Dependencies: Swapped unzip for tar package
  • Fallback version: Updated from 0.10.4 to 1.0.107 (first version with tar.gz support)
# Before
ASSET_NAME="opencode-${PLATFORM}-${ARCH_SUFFIX}.zip"
unzip -q "${ASSET_NAME}"

# After
ASSET_NAME="opencode-${PLATFORM}-${ARCH_SUFFIX}.tar.gz"
tar -xzf "${ASSET_NAME}"

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • containers.dev
    • Triggering command: /usr/local/bin/node node /usr/local/bin/devcontainer features test -f opencode -i ubuntu:latest (dns block)
  • docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com
    • Triggering command: /usr/local/bin/node node /usr/local/bin/devcontainer features test -f opencode -i ubuntu:latest (dns block)
  • https://api.github.com/repos/sst/opencode/releases/latest
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)
    • Triggering command: /usr/bin/curl curl -s -H Accept: application/vnd.github.v3+json REDACTED (http block)
    • Triggering command: /usr/bin/curl curl -s --max-time 10 REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Opencode feature fails with 404 because opencode releases updated endpoints</issue_title>
<issue_description>Current implementation pulls this giving a 404 https://github.com/sst/opencode/releases/download/v1.0.107/opencode-linux-x64.zip

Opencode updated the endpoint to https://github.com/sst/opencode/releases/download/v1.0.107/opencode-linux-x64.tar.gz</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: jsburckhardt <18494471+jsburckhardt@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix 404 error with updated Opencode download endpoint Fix OpenCode installation: switch from .zip to .tar.gz Nov 24, 2025
Copilot AI requested a review from jsburckhardt November 24, 2025 10:18
Copy link
Owner

@jsburckhardt jsburckhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@jsburckhardt jsburckhardt marked this pull request as ready for review November 24, 2025 10:27
@jsburckhardt jsburckhardt merged commit b5c3469 into main Nov 24, 2025
50 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Opencode feature fails with 404 because opencode releases updated endpoints

2 participants