nixpkgs/pkgs/tools/admin/google-cloud-sdk
Pavel Borzenkov d6876bc879
google-cloud-sdk: fix searching for cloud_sql_proxy on the PATH (#114488)
'gcloud sql connect' command allows to connect to a CloudSQL instance
from a local machine. In order to do so, it starts local
'cloud_sdk_proxy' instance. google-cloud-sdk expects to find one in SDK
root (installed by 'gcloud components') or on the PATH, if SDK is not
correctly installed ('.install' directory is missing).

Since google-cloud-sdk on NixOS is properly installed 'gcloud sql
connect' never looks for 'cloud_sql_proxy' on the PATH and simply
doesn't work at all.

The patch slightly modifies the check by looking not only for
'.install' directory, but for actual 'cloud_sql_proxy' binary before
falling back to the search on the PATH.

With this patch it's now possible to use 'gcloud sql connect' on NixOS,
provided that 'cloud_sql_proxy' is available either in user or system
enviroment (available in nixpkgs).
2021-02-28 12:05:26 +00:00
..
alpha__init__.py google-cloud-sdk: enable alpha and beta features 2017-07-03 13:40:33 -04:00
beta__init__.py google-cloud-sdk: enable alpha and beta features 2017-07-03 13:40:33 -04:00
cloud_sql_proxy_path.patch google-cloud-sdk: fix searching for cloud_sql_proxy on the PATH (#114488) 2021-02-28 12:05:26 +00:00
default.nix google-cloud-sdk: fix searching for cloud_sql_proxy on the PATH (#114488) 2021-02-28 12:05:26 +00:00
gcloud-path.patch google-cloud-sdk: apply kubeconfig: don't store absolute path to gcloud binary 2019-06-14 23:41:43 +02:00
gsutil-disable-updates.patch google-cloud-sdk: disable checking for gsutil updates 2020-02-18 13:31:42 +00:00