Stop emitting explicit version in Homebrew formulae - #402
Conversation
Homebrew/brew#23338 (merged 2026-07-28) made brew prefer the numeric release tag over asset filenames when scanning versions from URLs, so brew now derives the version from the /releases/download/vX.Y.Z/ path and flags explicit version lines as redundant, failing brew audit in the homebrew-stable tap's CI (clerk/homebrew-stable#3 fixed the already-published formulae).
|
📝 WalkthroughWalkthroughHomebrew formula generation no longer includes an explicit Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
The homebrew-stable tap's CI went red on this run:
brew auditnow fails every formula withversion X.Y.Z is redundant with version scanned from URL.Root cause is Homebrew/brew#23338 (merged Jul 28): brew now prefers the numeric release tag (
v2.3.1) in/releases/download/vX.Y.Z/…URLs over the asset filename when scanning versions, so it derives the version on its own and treats our explicitversionline as a redundancy error.clerk/homebrew-stable#3 fixes the four already-published formulae; this PR fixes the generator (
renderFormulainscripts/lib/homebrew.ts) so the next release doesn't reintroduce the line.The formula's
test doblock keeps working:version.to_sresolves from the URL-scanned version.Validation
bun test scripts/lib/homebrew.test.ts— 11 passbun run format/bun run lint— cleanbun run typecheck— clean (an earlier failure incli-core's integration harness test was stale localnode_modules; passes afterbun install --frozen-lockfile)brew audit --except=installed --tap=clerk/stable,brew style, andbrew readalllocally on brewed35dbcb2e— the exact commit the failing CI run used — and versions scan correctly (2.3.1 / 0.8.4 / 1.5.0 / 2.3.1)No changeset: release tooling only, no user-facing CLI behavior change.