homebrew-cloud_sql_proxy icon indicating copy to clipboard operation
homebrew-cloud_sql_proxy copied to clipboard

Use pre-built binary for macOS

Open gmile opened this issue 4 years ago • 5 comments

The "Connecting using the Cloud SQL Proxy" page lists a method of installing cloud_sql_proxy that does not require compiling from sources.

The URL for the binary is the following:

https://dl.google.com/cloudsql/cloud_sql_proxy.darwin.amd64

Perhaps this tap could be updated to utilize the pre-built binary?

All latest pre-built binaries also exist here: https://github.com/GoogleCloudPlatform/cloudsql-proxy/releases

gmile avatar Jan 26 '21 14:01 gmile

sry for answering that late. I'm actually not sure about all the advantages/disadvantges here, some people might wanna build it themselves? Just downloading the binary sure is convenient, not sure if it's nessecary

tclass avatar May 15 '21 11:05 tclass

@tclass (opinion) I think most people would want to just install the tool without making modifications, installing go tooling, etc. We may disagree on this, as I am not sure my assumption are entirely correct though since I don't know the audience of the tool much. But given Google itself promotes downloading of binary package, perhaps doing so considered a default option most people would want to go with?

What do you think about making utilising formula syntax that allows use of both head and stable blocks, e.g. to support both to-be-compiled and stable version of tool?

gmile avatar May 27 '21 14:05 gmile

how would that look like? Can you pass in a parameter into brew install?

tclass avatar May 27 '21 15:05 tclass

@tclass yes, there's a way to express "install from HEAD" in brew install. For example:

brew install --HEAD git

gmile avatar May 27 '21 15:05 gmile

Do you wanna implement that feature and create a PR?

tclass avatar May 28 '21 21:05 tclass