diff --git a/Formula/risingwave.rb b/Formula/risingwave.rb index fc482fd..5ed5a01 100644 --- a/Formula/risingwave.rb +++ b/Formula/risingwave.rb @@ -1,8 +1,8 @@ class Risingwave < Formula desc "Distributed SQL database for stream processing" homepage "https://github.com/risingwavelabs/risingwave" - url "https://github.com/risingwavelabs/risingwave/archive/refs/tags/v1.10.0.tar.gz" - sha256 "3ecb95e792bd16afa7404b74e3b624b798f4824cbad668fb38d536dabbb8f5e3" + url "https://github.com/risingwavelabs/risingwave/archive/refs/tags/v2.0.0.tar.gz" + sha256 "79d50be48c2a800443a713577827efa0146a4b8a1396dc1226d860b334c4dbed" license "Apache-2.0" head "https://github.com/risingwavelabs/risingwave.git", branch: "main" @@ -20,8 +20,8 @@ class Risingwave < Formula depends_on "openssl@3" resource "connector" do - url "https://github.com/risingwavelabs/risingwave/releases/download/v1.10.0/risingwave-v1.10.0-x86_64-unknown-linux-all-in-one.tar.gz" - sha256 "cf4927c62c2234567a2d87256fee217ae853300e12a2f7e9b28a0c873d823129" + url "https://github.com/risingwavelabs/risingwave/releases/download/v2.0.0/risingwave-v2.0.0-x86_64-unknown-linux-all-in-one.tar.gz" + sha256 "741e6a79a59b30ae8c8bba0473a25d66427472883e8374f1fd592603c2944fd6" end def install @@ -55,10 +55,14 @@ def install # Enable building embedded dashboard. ENV["ENABLE_BUILD_DASHBOARD"] = "1" + # Will show "x.y.z (Homebrew)" in the version string. + ENV["GIT_SHA"] = "Homebrew" + system "cargo", "install", - # "--profile", "production", # since the upcoming release 1.11 (or 2.0) + "--profile", "production", "--bin", "risingwave", "--features", "rw-static-link", + "--features", "all-udf", *std_cargo_args(root: libexec, path: "src/cmd_all") resource("connector").stage do diff --git a/README.md b/README.md index 569811a..9025dda 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,13 @@ $ $(brew --prefix risingwave@1.2)/bin/risingwave --version ## Contributing -Bump formula version: +```bash +# 1. Bump the version in the formula +brew bump-formula-pr risingwave --version x.y.z -``` -brew bump-formula-pr risingwave --url https://github.com/risingwavelabs/risingwave/archive/refs/tags/v.tar.gz -``` +# 2. Switch to the newly created branch +git switch bump-risingwave-x.y.z -At the same time, copy the old formula to `risingwave@` and change its class name to `RisingwaveAT`, so that the old version can still be installed. +# 3. Manually update the `resource "connector"` section in `Formula/risingwave.rb` +code Formula/risingwave.rb +```