Skip to content

feat: add CommerceKit CLI Homebrew formula - #1

Merged
anilkreddy merged 8 commits into
mainfrom
feat/commercekit-formula
Oct 12, 2026
Merged

anilkreddy merged 8 commits into
mainfrom
feat/commercekit-formula

Conversation

@anilkreddy

Copy link
Copy Markdown
Contributor

Purpose

Add the initial official Homebrew formula for the published CommerceKit CLI
developer preview. The formula installs the standalone binary without Node.js,
Bun, pnpm, a compiler, or a build toolchain.

Installed version: 0.1.0-preview.1

Public release: commercekit-tools/cli tag cli-v0.1.0-preview.1

Installation after merge:

brew install commercekit-tools/tap/commercekit

Supported targets

Platform Archive SHA-256
macOS ARM64 commercekit-v0.1.0-preview.1-darwin-arm64.tar.gz 097704b2750b906daf87f6309ca96a825d4058fd3fce85ad7523561db69d82bf
macOS x64 commercekit-v0.1.0-preview.1-darwin-x64.tar.gz d8307276978b745bf3d86eb1b6d164f23b304cc2c82a75e301f7e4fead2927de
Linux ARM64 commercekit-v0.1.0-preview.1-linux-arm64.tar.gz 914d5acad10351e21f426b93b2c95f97aa8a9afc1284a550343aead09ff86fb9
Linux x64 commercekit-v0.1.0-preview.1-linux-x64.tar.gz d01dd1bc45b39125ddc642b84163ceb24239a6a3ff9c80f69efe2e4939187d0b

Windows release assets are intentionally outside the Homebrew formula.

Formula behavior

  • Installs the standalone commercekit executable.
  • Retains LICENSE, THIRD_PARTY_NOTICES, and README.txt under the formula share directory.
  • Declares no runtime or build dependencies.
  • Tests the exact version and an offline Cron explanation command.
  • Discloses that this is a preview and that macOS binaries are unsigned and not Apple-notarized.

Verification and CI

The release-contract verifier checks the published prerelease state, tag,
version, source build ID, release manifest, checksum file, eight-asset release
set, four Homebrew mappings, immutable URLs, archive hashes, archive contents,
and exclusion of Windows/private-source URLs from the formula.

The Homebrew Formula workflow runs on ubuntu-24.04 and macos-15 with
read-only repository permission. It runs formula style and external-tap audit,
then exercises install, exact version, standalone execution, formula test,
linkage, current-version upgrade behavior, uninstall, reinstall, retest, and
final uninstall. It publishes no package, bottle, tag, or release.

Checks executed locally on macOS ARM64 with Homebrew 7.0.8:

  • Ruby syntax validation
  • 11 offline verifier tests with 31 assertions
  • live release-contract and four-archive verification
  • actionlint and YAML parsing
  • documentation link checks
  • brew style commercekit-tools/tap/commercekit
  • brew audit --strict --online --os=all --arch=all commercekit-tools/tap/commercekit
  • native install, exact version, formula test, Cron command, dependency and linkage checks
  • isolated execution without Node.js or Bun on PATH
  • uninstall, install-after-uninstall, brew reinstall, retest, and final uninstall
  • secret, private-path, binary, and final diff scans

A true version-to-version upgrade cannot be tested until a second CommerceKit
CLI release exists. The workflow verifies that the current formula is reported
up to date without fabricating an older version.

No binaries or downloaded archives are committed. The existing CLI release was
not modified, no new CLI release was created, and the private source repository
remained unchanged. This pull request is not being merged as part of this work.

@anilkreddy
anilkreddy merged commit 6ac007d into main Oct 12, 2026
3 checks passed
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