-
Notifications
You must be signed in to change notification settings - Fork 4
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
risingwave 2.0.0 #44
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
class Risingwave < Formula | ||
Check warning on line 1 in Formula/risingwave.rb GitHub Actions / test-bot (macos-13-xlarge)`brew linkage --cached --test --strict risingwavelabs/risingwave/risingwave` failed on macOS Ventura (13) on Apple Silicon!
|
||
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,11 +20,11 @@ | |
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 | ||
Check failure on line 27 in Formula/risingwave.rb GitHub Actions / test-bot (macos-13-large)`brew install --verbose --formula --build-bottle risingwavelabs/risingwave/risingwave` failed on macOS Ventura (13)!
|
||
# this will install the necessary cargo/rustup toolchain bits in HOMEBREW_CACHE | ||
system "#{Formula["rustup"].bin}/rustup-init", | ||
"-qy", "--no-modify-path", | ||
|
@@ -55,10 +55,14 @@ | |
# 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 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
# 3. Manually update the `resource "connector"` section in `Formula/risingwave.rb` | ||
code Formula/risingwave.rb | ||
``` |
There was a problem hiding this comment.
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?