From 5446b67e398471ce514ab6ce14368e36b9bca669 Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Wed, 18 Sep 2024 14:55:04 +0800 Subject: [PATCH 1/5] risingwave 2.0.0 --- Formula/risingwave.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/risingwave.rb b/Formula/risingwave.rb index fc482fd..e64113e 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" From 88e69474b0f9184556d72c23e5bc76023d24e9c0 Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Wed, 18 Sep 2024 15:02:35 +0800 Subject: [PATCH 2/5] update connector resource Signed-off-by: Bugen Zhao --- Formula/risingwave.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/risingwave.rb b/Formula/risingwave.rb index e64113e..15672e4 100644 --- a/Formula/risingwave.rb +++ b/Formula/risingwave.rb @@ -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 From a0f44977e191d46952adda0e3f7ee43937c92648 Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Wed, 18 Sep 2024 15:03:28 +0800 Subject: [PATCH 3/5] update contirbuting instructions Signed-off-by: Bugen Zhao --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 +``` From 42ae2b5ebaaf56ca893d298a251bea0c9e6ebd5a Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Wed, 18 Sep 2024 15:05:11 +0800 Subject: [PATCH 4/5] address checklists Signed-off-by: Bugen Zhao --- Formula/risingwave.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Formula/risingwave.rb b/Formula/risingwave.rb index 15672e4..3cb603f 100644 --- a/Formula/risingwave.rb +++ b/Formula/risingwave.rb @@ -56,9 +56,10 @@ def install ENV["ENABLE_BUILD_DASHBOARD"] = "1" 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 From 71d607a3e2988770475f2814cba42b4c468b4dbd Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Wed, 18 Sep 2024 15:10:58 +0800 Subject: [PATCH 5/5] set git_sha Signed-off-by: Bugen Zhao --- Formula/risingwave.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Formula/risingwave.rb b/Formula/risingwave.rb index 3cb603f..5ed5a01 100644 --- a/Formula/risingwave.rb +++ b/Formula/risingwave.rb @@ -55,6 +55,9 @@ 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", "--bin", "risingwave",