Skip to content

Use source build for dbdev on macOS arm#805

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-dbdev-arm-binary
Draft

Use source build for dbdev on macOS arm#805
Copilot wants to merge 2 commits intomainfrom
copilot/fix-dbdev-arm-binary

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 13, 2026

dbdev on Apple Silicon was mapped to the macOS amd64 release artifact, which installs an incompatible executable. Upstream v0.1.7 does not publish a macOS arm binary, so the arm formula path needs a different install source.

  • macOS arm install path

    • Switch the Hardware::CPU.arm? macOS stanza from the prebuilt amd64 tarball to the upstream v0.1.7 source tarball.
    • Add a Rust build dependency for that path.
  • Build/install behavior

    • Build the CLI from cli/ with Cargo during installation instead of installing a prebuilt binary.
    • Keep the existing Intel macOS and Linux binary paths unchanged.
  • Result

    • Apple Silicon no longer links an x86_64 executable.
    • The formula can install a working dbdev binary on macOS arm even without an upstream arm release artifact.
if Hardware::CPU.arm?
  url "https://github.com/supabase/dbdev/archive/refs/tags/v0.1.7.tar.gz"
  sha256 "3c7c6dc09c6ef8e76a1e9132b9ba5a8eb60ce94271c16fa889c56df72a140121"
  depends_on "rust" => :build

  def install
    system "cargo", "install", "--locked", "--root", prefix, "--path", "cli"
  end
end

Copilot AI linked an issue Apr 13, 2026 that may be closed by this pull request
Agent-Logs-Url: https://github.com/supabase/homebrew-tap/sessions/f15fc0c2-8a99-4e5e-a1b8-fd9b09979c1a

Co-authored-by: avallete <8771783+avallete@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix dbdev formula for correct arm architecture Use source build for dbdev on macOS arm Apr 13, 2026
Copilot AI requested a review from avallete April 13, 2026 14:27
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.

dbdev wrong architecture

2 participants