-
-
Notifications
You must be signed in to change notification settings - Fork 13.5k
vitess 8.0.0 (new formula) #66364
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
vitess 8.0.0 (new formula) #66364
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 |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| class Vitess < Formula | ||
| desc "Database clustering system for horizontal scaling of MySQL" | ||
| homepage "https://vitess.io" | ||
| url "https://github.com/vitessio/vitess/archive/v8.0.0.tar.gz" | ||
| sha256 "c47320b9bcb874b1a6dfca78ec677be7c4bb4c7b2a6470df80bd1bc0ad125e92" | ||
| license "Apache-2.0" | ||
|
|
||
| depends_on "go" => :build | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Vitess only works using
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like it builds fine with the latest version and we don't allow new formula to depend on legacy software. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @SMillerDev just fyi, go 1.13 isn't legacy, it still receives security updates: https://golang.org/doc/devel/release.html#go1.13.minor
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Until February, meanwhile there have been 2 new releases. It's not deprecated but it is legacy IMHO. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Building might work, but tests do not pass for newer go versions. It's shameful, but still not done. :( Vitess is only supported on go@1.13 at the moment (I'm one of the maintainers of Vitess)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tend to agree: we can accept this formula when it builds with latest go. |
||
| depends_on "etcd" | ||
|
|
||
| def install | ||
| system "make", "install", "PREFIX=#{prefix}", "VTROOT=#{buildpath}" | ||
| bin.install "bin/mysqlctl" | ||
|
||
| bin.install "bin/vtctl" | ||
| pkgshare.install "examples" | ||
| end | ||
|
|
||
| test do | ||
| etcd_server = "localhost:#{free_port}" | ||
| fork do | ||
| exec Formula["etcd"].opt_bin/"etcd", "--enable-v2=true", | ||
| "--data-dir=#{testpath}/etcd", | ||
| "--listen-client-urls=http://#{etcd_server}", | ||
| "--advertise-client-urls=http://#{etcd_server}" | ||
| end | ||
| sleep 3 | ||
|
|
||
| port = free_port | ||
| fork do | ||
| exec bin/"vtgate", "-topo_implementation", "etcd2", | ||
| "-topo_global_server_address", etcd_server, | ||
| "-topo_global_root", testpath/"global", | ||
| "-port", port.to_s | ||
| end | ||
| sleep 3 | ||
|
|
||
| output = shell_output("curl -s localhost:#{port}/debug/health") | ||
| assert_equal "ok", output | ||
| end | ||
| end | ||
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.
If go is used, how are the dependencies/modules handled? Where are their versions specified, are they pinned, etc?
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.
I'm not super familiar with Go packaging, but looks like
go.sum: https://github.com/vitessio/vitess/blob/master/go.sumThere 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.
vitess uses go modules, the dependencies are in go.mod