altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

fix: curl install URL returns HTML instead of shell script

Open dev-punia-altimate opened this issue 8 months ago • 1 comments

Problem

The upgradeCurl() function in packages/opencode/src/installation/index.ts:37 fetches https://altimate.ai/install and pipes the response to bash. This URL returns the website HTML, not a shell script.

Tested both domains:

  • https://altimate.ai/install → HTTP 302 → website HTML

Doesn't serves the install script. The only working URL is:

https://raw.githubusercontent.com/AltimateAI/altimate-code/main/install

Impact

Any user running altimate-code upgrade with method=curl gets a bash syntax error. This affects all curl-installed users on macOS and Linux.

Evidence

Install matrix run: https://github.com/AltimateAI/altimate-qa/actions/runs/23295037235

curl install failed: exit=1
bash: line 1: syntax error near unexpected token `<'

Fix needed

Either:

  1. Configure altimate.sh/install (or altimate.ai/install) to serve the shell script from the repo's install file
  2. Or update the code to use the GitHub raw URL as primary source

PR #274 adds a fallback to the GitHub raw URL as a workaround.

dev-punia-altimate avatar Mar 19 '26 18:03 dev-punia-altimate

Released in v0.7.2. The fetch in Installation.upgradeCurl() now points at https://www.altimate.sh/install and is bounded by a 15s timeout. v0.7.1 curl users: re-install once with curl -fsSL https://www.altimate.sh/install | bash — v0.7.2+ self-heals.

anandgupta42 avatar May 21 '26 08:05 anandgupta42