Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

risingwave 2.0.0 #44

Closed
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Formula/risingwave.rb
Original file line number Diff line number Diff line change
@@ -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"

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ $ $(brew --prefix [email protected])/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<x.y.z>.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@<x.y>` and change its class name to `RisingwaveAT<xy>`, so that the old version can still be installed.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't maintain old version any more?

# 3. Manually update the `resource "connector"` section in `Formula/risingwave.rb`
code Formula/risingwave.rb
```
Loading