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.2 #45

Closed
Closed
Changes from all 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
31 changes: 26 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/v2.0.0.tar.gz"
sha256 "79d50be48c2a800443a713577827efa0146a4b8a1396dc1226d860b334c4dbed"
url "https://github.com/risingwavelabs/risingwave/archive/refs/tags/v2.0.2.tar.gz"
sha256 "faf14b90c70b4016fc4c8bbba13215770ec39411e8bdb15a9748557a912b5c2d"
license "Apache-2.0"
head "https://github.com/risingwavelabs/risingwave.git", branch: "main"

Expand All @@ -19,12 +19,16 @@ class Risingwave < Formula
depends_on "rustup" => :build
depends_on "java11"
depends_on "openssl@3"
depends_on "[email protected]"

resource "connector" do
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"
url "https://github.com/risingwavelabs/risingwave/releases/download/v2.0.2/risingwave-v2.0.2-x86_64-unknown-linux-all-in-one.tar.gz"
sha256 "51c8d0ba295c2d0747d8e8cafc908a65a8db26b62ee9883c589d8dc356359459"
end

# Mitigate "argument list too long" error when linking.
patch :DATA

def install
# this will install the necessary cargo/rustup toolchain bits in HOMEBREW_CACHE
system "#{Formula["rustup"].bin}/rustup-init",
Expand Down Expand Up @@ -54,7 +58,10 @@ def install
end

# Enable building embedded dashboard.
ENV["ENABLE_BUILD_DASHBOARD"] = "1"
ENV["ENABLE_BUILD_DASHBOARD"] = "1" if build.without?("dev-profile")

# Currently we don't support Python 3.13.
ENV["PYO3_PYTHON"] = "python3.12"

# Will show "x.y.z (Homebrew)" in the version string.
ENV["GIT_SHA"] = "Homebrew"
Expand Down Expand Up @@ -82,3 +89,17 @@ def install
system "#{bin}/risingwave", "--help"
end
end

__END__
diff --git a/Cargo.toml b/Cargo.toml
index 9319e18..b51a281 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -312,6 +312,7 @@ lto = "off"

[profile.production]
inherits = "release"
+codegen-units = 8 # mitigate "argument list too long" error when linking
incremental = false
lto = "thin"

Loading