openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

[Bug] install.sh --dry-run fails on linux/x86_64 when the latest release has no Linux asset

Open jwalin-shah opened this issue 7 months ago • 1 comments

Summary

scripts/install.sh --dry-run --verbose exits non-zero on linux/x86_64 when the latest release does not publish a Linux asset. This breaks the documented official Linux installer path and causes CI/install smoke checks to fail even in dry-run mode.

Problem

What happened:

  1. Run bash scripts/install.sh --dry-run --verbose on Linux x86_64.
  2. The script detects linux/x86_64.
  3. latest.json lookup does not yield a Linux entry, so the installer falls back to the releases API.
  4. The latest release also has no compatible Linux asset.
  5. The installer exits with:
✓ Detected platform: linux/x86_64
! latest.json lookup failed. Falling back to releases API.
x Could not resolve a compatible asset for linux/x86_64.

What was expected:

  • The official Linux installer path should resolve a compatible Linux asset when Linux is documented as supported.
  • At minimum, --dry-run should warn clearly and exit successfully instead of failing CI when the absence of a Linux asset is already the condition being checked.

Impact:

  • The documented curl .../scripts/install.sh | bash path is broken for Linux users when a release ships without a Linux artifact.
  • Installer smoke checks fail on Linux.

Environment:

  • OpenHuman version: latest release at the time of filing was v0.52.28
  • Platform: Linux x86_64
  • Install path: scripts/install.sh --dry-run --verbose

Additional verification:

  • latest.json for v0.52.28 contains darwin-aarch64, darwin-x86_64, and windows-x86_64, but no Linux entry.
  • The latest GitHub release metadata also appears to lack a Linux-compatible asset.

Solution (optional)

Potential fixes:

  • Ensure releases publish a Linux x86_64 artifact whenever Linux is listed as officially supported.
  • Add release validation so a release fails if latest.json and release assets omit a required supported platform.
  • Make --dry-run degrade to a warning with exit code 0 when no compatible asset is published, while keeping real installs as hard failures.

Acceptance criteria

  • [ ] Repro gone — bash scripts/install.sh --dry-run --verbose no longer fails on Linux x86_64 for this case.
  • [ ] Regression safety — Release validation checks that supported-platform assets and latest.json entries stay in sync.
  • [ ] Installer behavior clarified — Missing Linux assets either block release publication or produce an explicit dry-run warning without failing the smoke check.

Related

  • docs/install.md documents curl / install.sh as an official Linux install path.
  • Latest release observed while debugging: v0.52.28
  • Relevant artifacts checked:
    • https://github.com/tinyhumansai/openhuman/releases/latest/download/latest.json
    • https://api.github.com/repos/tinyhumansai/openhuman/releases/latest

jwalin-shah avatar Apr 22 '26 14:04 jwalin-shah

Hey @senamakel @Al629176 guys, I am picking up this issue.

obchain avatar Apr 24 '26 09:04 obchain