From 4b4cd974b778f36401dbfd2e0493fbc7ad5bfb9e Mon Sep 17 00:00:00 2001 From: Rafael Thayto Tani Date: Thu, 30 Jul 2026 13:23:22 -0300 Subject: [PATCH] Stop emitting explicit version in Homebrew formulae 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). --- scripts/lib/homebrew.test.ts | 5 ++++- scripts/lib/homebrew.ts | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/lib/homebrew.test.ts b/scripts/lib/homebrew.test.ts index e3c609e7c..b825e236c 100644 --- a/scripts/lib/homebrew.test.ts +++ b/scripts/lib/homebrew.test.ts @@ -16,7 +16,10 @@ describe("renderFormula", () => { }, }); - expect(result).toContain('version "1.2.3"'); + // Homebrew scans the version from the /releases/download/vX.Y.Z/ URL + // (Homebrew/brew#23338); an explicit `version` line fails `brew audit` + // as redundant in the homebrew-stable tap's CI. + expect(result).not.toContain('version "'); expect(result).toContain( "https://github.com/clerk/cli/releases/download/v1.2.3/homebrew-clerk-darwin-arm64.tar.gz", ); diff --git a/scripts/lib/homebrew.ts b/scripts/lib/homebrew.ts index 03d338bbd..c7a39edff 100644 --- a/scripts/lib/homebrew.ts +++ b/scripts/lib/homebrew.ts @@ -33,7 +33,6 @@ export function renderFormula(input: FormulaInput): string { return `class ${className} < Formula desc "Command-line interface for Clerk" homepage "https://clerk.com" - version "${version}" license "MIT"${kegOnly} on_macos do