Skip to content

Commit 31c9555

Browse files
tauhid621claude
andauthored
Add dbt-core formula (#390)
* Add dbt-core formula Add a Homebrew formula for dbt-core v2.0.0-alpha.1, sourced from the dbt-core GitHub release assets (macOS/Linux, arm64/x86_64). The release ships a single `dbt-sa-cli` binary which is installed as `dbt`. Enable the reciprocal `conflicts_with "dbt-core"` in the dbt (Fusion) formula since both install the `dbt` binary. Validated locally via a throwaway tap: brew style, install, test (`dbt --version` -> dbt-core 2.0.0-alpha.1), and audit --new all pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Add explicit version to dbt-core formula for consistency with dbt formula Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a58ad6f commit 31c9555

2 files changed

Lines changed: 40 additions & 2 deletions

File tree

Formula/dbt-core.rb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
class DbtCore < Formula
2+
desc "Build analytics the way engineers build applications"
3+
homepage "https://getdbt.com"
4+
version "2.0.0-alpha.1"
5+
license "Apache-2.0"
6+
7+
on_macos do
8+
on_arm do
9+
url "https://github.com/dbt-labs/dbt-core/releases/download/v2.0.0-alpha.1/dbt-core-2.0.0-alpha.1-aarch64-apple-darwin.tar.gz"
10+
sha256 "10d52871b023bb4acfe08a94cd9ad66539093a2eb8157fc7c1e9ebb933f218a8"
11+
end
12+
on_intel do
13+
url "https://github.com/dbt-labs/dbt-core/releases/download/v2.0.0-alpha.1/dbt-core-2.0.0-alpha.1-x86_64-apple-darwin.tar.gz"
14+
sha256 "543463f9078f3b6125a2bab5fda8ff678114e7ccd7de1cfb0526c9fdb487d05d"
15+
end
16+
end
17+
18+
on_linux do
19+
on_arm do
20+
url "https://github.com/dbt-labs/dbt-core/releases/download/v2.0.0-alpha.1/dbt-core-2.0.0-alpha.1-aarch64-unknown-linux-gnu.tar.gz"
21+
sha256 "83a3cabe2ec2588390fe64f94142b0a0eb8ebf48c90db05cdab1da5d7232789a"
22+
end
23+
on_intel do
24+
url "https://github.com/dbt-labs/dbt-core/releases/download/v2.0.0-alpha.1/dbt-core-2.0.0-alpha.1-x86_64-unknown-linux-gnu.tar.gz"
25+
sha256 "8342e0027a0df9175c24255282f7db1504582d2efb4fd5472215a2a34857032e"
26+
end
27+
end
28+
29+
conflicts_with "dbt", because: "both formulas install the `dbt` binary"
30+
31+
def install
32+
bin.install "dbt-sa-cli" => "dbt"
33+
end
34+
35+
test do
36+
assert_match version.to_s, shell_output("#{bin}/dbt --version")
37+
end
38+
end

Formula/dbt.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class Dbt < Formula
2-
desc "Fast and enriched dbt compiler and runner"
2+
desc "Build analytics the way engineers build applications"
33
homepage "https://getdbt.com"
44
version "2.0.0-preview.181"
55
license :cannot_represent
@@ -26,7 +26,7 @@ class Dbt < Formula
2626
end
2727
end
2828

29-
# conflicts_with "dbt-core", because: "both formulas install the `dbt` binary"
29+
conflicts_with "dbt-core", because: "both formulas install the `dbt` binary"
3030

3131
def install
3232
bin.install "dbt"

0 commit comments

Comments
 (0)