You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Homebrew formula stuck at v0.3.1 — Script.version includes the v prefix from git tags, causing double-v URLs (vv0.4.9) in the brew formula. The brew publish fails silently (wrapped in try/catch).
Brew latest() fallback dead — falls back to formulae.brew.sh which 404s since we're not in core homebrew
npm optionalDependencies have v-prefixed versions (technically invalid semver)
Root Cause
packages/script/src/index.ts line 35 passes OPENCODE_VERSION (git tag e.g. v0.4.9) verbatim without stripping the v prefix. All downstream consumers (brew formula, AUR, npm, Docker) get broken versions.
Fix
Strip v prefix at the source in Script.version
Replace dead formulae.brew.sh fallback with brew info --json=v2 then GitHub releases API
Add 64 new tests for version normalization, brew formula, and upgrade method detection
Problem
Multiple installation issues:
Script.versionincludes thevprefix from git tags, causing double-v URLs (vv0.4.9) in the brew formula. The brew publish fails silently (wrapped in try/catch)./opt/homebrew/bin/altimatelatest()fallback dead — falls back toformulae.brew.shwhich 404s since we're not in core homebrewv-prefixed versions (technically invalid semver)Root Cause
packages/script/src/index.tsline 35 passesOPENCODE_VERSION(git tag e.g.v0.4.9) verbatim without stripping thevprefix. All downstream consumers (brew formula, AUR, npm, Docker) get broken versions.Fix
vprefix at the source inScript.versionformulae.brew.shfallback withbrew info --json=v2then GitHub releases API