Skip to content

Add Linux ARM formula support with pre-ARM legacy mode - #5

Merged
tonythethompson merged 3 commits into
masterfrom
cursor/linux-arm-support-689b
Aug 7, 2026
Merged

Add Linux ARM formula support with pre-ARM legacy mode#5
tonythethompson merged 3 commits into
masterfrom
cursor/linux-arm-support-689b

Conversation

@tonythethompson

Copy link
Copy Markdown
Collaborator

Summary

Prepares this tap for Linux ARM (aarch64-unknown-linux-gnu) bottle URLs once numan publishes that archive (see numan-cli/numan#99).

Changes

  • Sync scripts/render_homebrew_formula.py with Linux ARM + --legacy-pre-linux-arm
  • Update unit tests and check_formula.py roundtrip for pre-ARM SHA256SUMS
  • update-formula.yml only requires Linux ARM when the release asset exists
  • README platform table

Formula/numan.rb stays on v0.2.1 (macOS ARM + Linux x86_64). Digests and the on_linux/on_arm stanza update automatically on the next ARM-enabled numan release.

Test plan

  • python3 -m unittest scripts.test_render_homebrew_formula -v
  • python3 scripts/check_formula.py (network roundtrip + Linux archive layout)

Sync the vendored renderer with numan's aarch64-unknown-linux-gnu
bottle stanza, keep Formula/numan.rb on v0.2.1 until that archive
ships, and teach update/check workflows to use --legacy-pre-linux-arm.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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.

Pull request overview

Prepares this Homebrew tap to support future Linux ARM (aarch64-unknown-linux-gnu) bottle URLs while preserving a legacy mode for pre-Linux-ARM releases/tags.

Changes:

  • Extend the formula renderer to parse/render Linux ARM digests, with --legacy-pre-linux-arm to allow older releases without Linux ARM assets.
  • Update unit tests and the formula roundtrip checker to handle the optional/legacy Linux ARM asset presence.
  • Adjust the update workflow and README to reflect Linux ARM being optional until assets exist.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
scripts/render_homebrew_formula.py Adds Linux ARM asset support and a legacy flag controlling required assets and rendered Linux ARM stanza.
scripts/test_render_homebrew_formula.py Expands coverage for Linux ARM parsing/rendering and legacy behavior.
scripts/check_formula.py Updates invariant checks and roundtrip rendering to tolerate pre-Linux-ARM releases.
.github/workflows/update-formula.yml Adds conditional legacy rendering based on whether the Linux ARM asset exists on the release.
README.md Documents platform support status and legacy rendering behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/check_formula.py Outdated
Comment thread scripts/render_homebrew_formula.py
tonythethompson and others added 2 commits August 7, 2026 05:58
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@tonythethompson
tonythethompson merged commit 728d4da into master Aug 7, 2026
2 checks passed
@tonythethompson
tonythethompson deleted the cursor/linux-arm-support-689b branch August 7, 2026 13:03
@linear-code

linear-code Bot commented Aug 7, 2026

Copy link
Copy Markdown

TS-156

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.

3 participants