cockroachdb / cockroach-go

Packages for go clients.
Apache License 2.0
160 stars 70 forks source link

support downloading the latest stable version of CRDB #110

Closed ZhouXing19 closed 3 years ago

ZhouXing19 commented 3 years ago

resolves #83

This commit sets the default mode for database downloads to "Download the latest stable version of CRDB".

We get the latest stable version through https://register.cockroachdb.com/api/updates, and save it to a local file with cockroach-majorv-minorv-patch naming pattern in the tmp directory. The downloading is OS-specific.

Problem unsolved: the tenant tests with proxy always fail with stable CRDB, but pass with latest non-stable CRDB.

cockroach-teamcity commented 3 years ago

This change is Reviewable

ZhouXing19 commented 3 years ago

@andreimatei Sorry for the late reply. Thanks for the suggestion! I am trying to use the updates endpoint of the CockroachDB cluster to get the latest stable CRDB's binaries. A related PR was made in the Registration repo.