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