Fix Homebrew formula URL selection on macOS #11

Closed
opened 2026-05-26 22:09:59 +00:00 by KofTwentyTwo · 0 comments
KofTwentyTwo commented 2026-05-26 22:09:59 +00:00 (Migrated from github.com)

Problem

The v0.1.0 Homebrew formula installs and passes brew test, but brew info koftwentytwo/tap/limen fails on macOS 26.5 with:

koftwentytwo/tap/limen: formula requires at least a URL

Root cause

Homebrew reports Hardware::CPU.type and Hardware::CPU.arch as :dunno on this machine, even though uname -m and Ruby both report arm64. The generated formula relies on nested on_arm / on_intel blocks, so no URL block becomes active for Homebrew metadata commands.

Scope

  • Update the release workflow formula generation to use explicit OS/CPU conditionals with an RbConfig fallback.
  • Update packaging/homebrew/limen.rb to match.
  • Patch the live KofTwentyTwo/homebrew-tap formula for v0.1.0.
  • Verify brew info, brew test, and limen --version.
## Problem The `v0.1.0` Homebrew formula installs and passes `brew test`, but `brew info koftwentytwo/tap/limen` fails on macOS 26.5 with: ```text koftwentytwo/tap/limen: formula requires at least a URL ``` ## Root cause Homebrew reports `Hardware::CPU.type` and `Hardware::CPU.arch` as `:dunno` on this machine, even though `uname -m` and Ruby both report `arm64`. The generated formula relies on nested `on_arm` / `on_intel` blocks, so no URL block becomes active for Homebrew metadata commands. ## Scope - Update the release workflow formula generation to use explicit OS/CPU conditionals with an `RbConfig` fallback. - Update `packaging/homebrew/limen.rb` to match. - Patch the live `KofTwentyTwo/homebrew-tap` formula for `v0.1.0`. - Verify `brew info`, `brew test`, and `limen --version`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KofTwentyTwo/limen#11