Repository navigation
Description
What's the problem
There is no brew route. #732 asks for one, but macOS is marked deprecated (#493/#504), brew cannot do the root tuning (GRUB, hugepages, MSR) that RandomX needs, and Linuxbrew's prefix is user-owned.
What it impacts
macOS and Linuxbrew DIY users and the macOS support wording.
How I found it
#732 criteria, README.md:20-22, and rigforge.sh's own brew install (about line 945) and launchd path (_mac_plist, 3815). Uninstall and most verbs are Linux-only today.
How important is it
Low to medium: lowest-value channel for real mining, labelled best effort, ships after apt.
Acceptance criteria
- scripts/build-homebrew-formula.sh renders Formula/rigforge.rb from Formula/rigforge.rb.in with the release tarball url and the sha256 from SHA256SUMS, failing if they disagree.
- The formula installs the tree to libexec, writes a wrapper exporting the lib and state vars (state under brew var) with bash, jq and flock on PATH, and the marker with value brew; there is no service block and setup stays explicit.
brew tap p2pool-starter-stack/rigforge <repo url>thenbrew installworks on macOS and Linux;test doruns an offlinerigforge --versionon both.- On Linux, setup under a brew tree is refused by the Refuse to render root-run units from a code tree writable by a non-root user #783 guard; a test proves it.
- The release uploads a generated rigforge.rb beside the tarball with the tarball sha256; after the release completes, a job opens a PR from a fixed branch name updating Formula/rigforge.rb on main using the repository's bot app token (same repository, no cross-repo token), never a direct push; the formula is live only after that PR merges; the job is skipped for drafts and prereleases and when the bot is not configured.
- The tap is added with an explicit URL: brew tap p2pool-starter-stack/rigforge , then brew install p2pool-starter-stack/rigforge/rigforge.
- Install is inert, as with the .deb: caveats tell the user to run
rigforge setupexplicitly; brew upgrade is followed by a printed hint, never an automatic restart of a running miner (the 2026-11-20 auto-restart ruling applies to apt only). - README and getting-started replace "deprecated" for macOS with a best-effort policy and the degraded-feature list.
Possible solutions
Decided on 2026-11-20: in-repo tap installed by URL, formula generated by a build script and bumped by a bot PR, mirroring node-manager (Formula/.rb and Formula/.rb.in on main, release-asset formula, bot PR, explicit-remote tap). The separate homebrew-rigforge repo is rejected. Linux: macOS-only support, or Linuxbrew CLI-only behind the guard.
Activity
pithead-architect commentedon Nov 27, 2026
Release regroom (owner request, 2026-11-27): moved from v1.20.0 to v1.22.0. Trimmed from v1.20.0 (update API only) per the owner. Install-route chain after the deb start.