From b022660d1fad6506a082e103bc1ad60268b81371 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 17 Apr 2026 17:36:44 +0530 Subject: [PATCH] Fix formula component order to satisfy brew style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `brew style` enforces Homebrew's canonical component order: - `version` before `license` - `head` before `on_macos`/`on_linux` The bootstrap formula had both swapped, so every `test-bot --only-tap-syntax` run fails the style check — which is what surfaced on dependabot PR #1 (bumping `actions/cache`). Verified locally: `brew style`, `brew audit --strict`, and `brew readall --aliases --os=all --arch=all` all pass with this ordering. --- Formula/appwrite.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Formula/appwrite.rb b/Formula/appwrite.rb index 59b5af4..0f12036 100644 --- a/Formula/appwrite.rb +++ b/Formula/appwrite.rb @@ -1,8 +1,8 @@ class Appwrite < Formula desc "Command-line tool for interacting with the Appwrite API" homepage "https://appwrite.io" - license "BSD-3-Clause" version "18.2.0" + license "BSD-3-Clause" def self.binary_arch Hardware::CPU.arm? ? "arm64" : "x64" @@ -26,6 +26,10 @@ def self.build_target raise "Homebrew formula is only supported on macOS and Linux" end + head "https://github.com/appwrite/sdk-for-cli.git", branch: "master" do + depends_on "bun" => :build + end + # Release automation injects per-target SHA256 values when publishing binaries. on_macos do if Hardware::CPU.arm? @@ -47,10 +51,6 @@ def self.build_target end end - head "https://github.com/appwrite/sdk-for-cli.git", branch: "master" do - depends_on "bun" => :build - end - def install if build.head? system "bun", "install", "--frozen-lockfile"