Skip to content

fix(install): fallback to releases API when latest.json is unavailable - #118

Merged
joelst merged 1 commit into
mainfrom
fix-install-macos-prerelease
Sep 14, 2026
Merged

joelst merged 1 commit into
mainfrom
fix-install-macos-prerelease

Conversation

@joelst

@joelst joelst commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • The macOS install script (scripts/install-macos.sh) was querying https://github.com/joelst/flint/releases/latest/download/latest.json.
  • Because v0.7.0 was published as an evaluation prerelease, GitHub's releases/latest pointer 404s by design.
  • Added a fallback to query the GitHub Releases API (https://api.github.com/repos/joelst/flint/releases) when latest.json is not found, so prereleases can be installed seamlessly.

Copilot AI lite review requested due to automatic review settings September 14, 2026 04:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The fallback lacks a required User-Agent, and the changeset does not publish the fix.

Pull request overview

Updates the macOS installer to find prerelease assets through the GitHub Releases API when latest.json is unavailable.

Changes:

  • Adds fallback release asset discovery.
  • Documents the installer behavior change.
File summaries
File Review summary
scripts/install-macos.sh Fallback needs a descriptive User-Agent header for GitHub API requests. Moderate (1 vote).
.changeset/install-macos-prerelease-fallback.md Declare a patch changeset so the fix is published. Moderate (1 vote).
Review details

Suppressed comments (2)

.changeset/install-macos-prerelease-fallback.md:2

  • This is the empty changeset form, so Changesets will not bump flint or include this user-facing install fix in the next release. The empty form is used for docs-only changes in this repository; please declare a patch for the flint package so this fix is actually published.
---
---

scripts/install-macos.sh:41

  • The GitHub REST API requires a User-Agent header, but this fallback only sends Accept. On a prerelease, the manifest request 404s and this request is then rejected (typically with 403), so the new fallback still cannot find an asset. Add a descriptive user agent, consistent with the existing GitHub API calls in scripts/ensure-bundled-node.cjs:125 and sidecar/foundry-sidecar.js:3167.
  RELEASES_JSON="$(curl -fsSL -H "Accept: application/vnd.github+json" "https://api.github.com/repos/$REPO/releases" 2>/dev/null || true)"
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@joelst
joelst merged commit 0bd3f4e into main Sep 14, 2026
10 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.

2 participants