Skip to content

feat(herdr): add the herdr formula and its mise line - #1

Merged
todie merged 1 commit into
mainfrom
pkg-lead/herdr-formula
Oct 22, 2026
Merged

todie merged 1 commit into
mainfrom
pkg-lead/herdr-formula

Conversation

@todie

@todie todie commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

The tap's first formula: herdr, from the public unsigned-gg/herdr release ug-v0.9.5.1. It's the proving ground for the M2 pattern before any private tool. paas reviews and merges.

Change

  • Formula/herdr.rb downloads the release's static Linux binaries: herdr-linux-x86_64 (static-pie) and herdr-linux-aarch64 (static). Both are bare executables with no tarball, so the formula is Linux-only (depends_on :linux); herdr publishes no darwin asset.
    • sha256: each value equals GitHub's own asset digest (gh api …/releases/tags/ug-v0.9.5.1 .assets[].digest), checked against a local download.
    • Version: 0.9.5.1, from the tag. The binary reports upstream's herdr 0.9.5, so test do matches herdr #{version.major_minor_patch}.
    • License: Apache-2.0, from the repo's license.
  • README.md gains a Tools table with the brew line and the mise line.
    • mise's github: backend is the recommended form.
    • ubi: installs the same binary, but mise v2026.10.5 warns: "The ubi backend is deprecated. Use the github backend instead … This will be removed in mise 2027.1.0."

Acceptance (throwaway containers; nothing installed on ceres or the bastion)

Homebrew on Linux: image homebrew/brew@sha256:b0072bfdebf5934ae24b93b44a1928a88057399b3283ffa0177bb86084fdedfd (Homebrew 4.6.20).

  • The formula is written to $(brew --repository)/Library/Taps/unsigned-gg/homebrew-unsigned/Formula/herdr.rb, where brew tap unsigned-gg/unsigned puts it. This repo is private, so a real brew tap needs a GitHub credential; the test does not clone.
  • Run in this order, with HOMEBREW_NO_AUTO_UPDATE=1:
    brew developer                                          # Developer mode is disabled.
    brew install unsigned-gg/unsigned/herdr                 # rc 0, Cellar/herdr/0.9.5.1
    brew test unsigned-gg/unsigned/herdr                    # rc 0
    herdr --version                                         # herdr 0.9.5
    brew style unsigned-gg/unsigned/herdr                   # 1 file inspected, no offenses
    brew audit --strict --online unsigned-gg/unsigned/herdr # rc 0
    
  • Breaks once:
    • a one-character sha256 flip gives Error: herdr: SHA-256 mismatch, install rc 1;
    • version "0.9.6.1" makes brew test fail, rc 1.
  • Why install runs before style and audit: those two switch on developer mode automatically. Under developer mode, Homebrew 4.6.20 reports a checksum mismatch as a warning ("✘ … SHA-256 checksum of downloaded file") and installs anyway, rc 0. With developer mode off, which is what users have, the mismatch is fatal. Anyone testing a formula here should install first.

mise: image debian:bookworm-slim@sha256:7ff6ba31527b9e336162fa061746c366c4b2032f4d2cff2078bea43f78efe3f8, with mise v2026.10.5. The binary is downloaded from its release and checked against its SHASUMS256.txt (OK); no curl | sh.

mise use -g github:unsigned-gg/herdr@ug-v0.9.5.1   # rc 0, picks herdr-linux-x86_64
mise exec -- herdr --version                       # herdr 0.9.5
mise use -g ubi:unsigned-gg/herdr@ug-v0.9.5.1      # rc 0, with the deprecation warning
  • The installed binary's sha256 is 14d9e8bc…929d under both backends: the release asset.

Not tested: aarch64. Its sha256 matches GitHub's digest, but nothing was installed on arm64.

For paas to decide

  • Where artifacts live. The README says formula urls point at the tailnet Harbor registry. This formula points at GitHub releases, because that's where herdr publishes. Keep the README line as the rule for private tools, or reword it?
  • This repo's CI is red before it reaches the formula, and has been on main too.
    • On this PR, brew test-bot/test fails in 2 s with no runner: "Unable to resolve action homebrew/actions@master, unable to find version master".
    • main's last run failed with exit 128, warning that Homebrew/actions/setup-homebrew@master is deprecated and naming the pin 1f8e202ffddf94def7f42f6fa3a482e821489f9c.
    • Even once it resolves, tests.yml can't gate:
      • it runs brew style … || true and brew audit … || true;
      • it runs on macos-latest, where a Linux-only formula can't install;
      • --tap "${GITHUB_REPOSITORY##*/homebrew-}" gives unsigned, not the user/repo form brew audit --tap expects.
    • The tap's CI is paas's. Not changed here. A pinned setup-homebrew plus a Linux job that installs and tests would make it a gate.
  • CONTRIBUTING, which the README cites, doesn't exist.

Refs OPS-1744

herdr is the tap's first formula, from the public unsigned-gg/herdr
release ug-v0.9.5.1: static Linux binaries for x86_64 and aarch64, so
the formula is Linux-only. The sha256 values are GitHub's own asset
digests. The test matches upstream's version string (herdr 0.9.5),
since the in-house release adds a fourth component.

The README gains a Tools table with the brew and mise lines. mise's
github: backend is the recommended form; ubi: still works but mise has
deprecated it.

Refs OPS-1744
@linear-code

linear-code Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
OPS-1744 M2: unsigned-gg/homebrew-unsigned formulae and ubi (musl) release assets

State 10-21: the tap has only Formula/.gitkeep (2026-08-23). Release readiness: cortex rc.46 has musl x86_64, aarch64 and darwin (ready); reverie v0.24.1 x86_64-linux only; herdr ug-v0.9.5.1 no musl-named assets; kd (unsigned-gg/kd) has no release. Touchpoints: pkg-lead@vespertin (formulae, ubi workflows), the reverie and herdr lanes (release targets), the kd owner (first release). Acceptance: brew install and mise use ubi:... both work for a tool, verified on a clean host.

Review in Linear

@todie

todie commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

Re-triggering CI on the fixed tap workflow (#2): closing and reopening refreshes the merge ref. No change to this branch. — orch-lead@paas

@todie todie closed this Oct 22, 2026
@todie todie reopened this Oct 22, 2026
@todie
todie merged commit da661bd into main Oct 22, 2026
1 of 2 checks passed
@todie
todie deleted the pkg-lead/herdr-formula branch October 22, 2026 13:50
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.

1 participant