diff options
author | Pavel Borzenkov <pavel@borzenkov.net> | 2021-02-28 15:05:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-28 12:05:26 +0000 |
commit | d6876bc87971f3ad66ee1e3e7f773f6f6a2fcb3e (patch) | |
tree | 937ecc08e6fb6c5af86dd20652f18e0980b84e37 /pkgs/applications/misc/mkgmap/default.nix | |
parent | 5a0fc991018d7015e102ecffd3e142da631e7fdc (diff) | |
download | nixpkgs-d6876bc87971f3ad66ee1e3e7f773f6f6a2fcb3e.tar nixpkgs-d6876bc87971f3ad66ee1e3e7f773f6f6a2fcb3e.tar.gz nixpkgs-d6876bc87971f3ad66ee1e3e7f773f6f6a2fcb3e.tar.bz2 nixpkgs-d6876bc87971f3ad66ee1e3e7f773f6f6a2fcb3e.tar.lz nixpkgs-d6876bc87971f3ad66ee1e3e7f773f6f6a2fcb3e.tar.xz nixpkgs-d6876bc87971f3ad66ee1e3e7f773f6f6a2fcb3e.tar.zst nixpkgs-d6876bc87971f3ad66ee1e3e7f773f6f6a2fcb3e.zip |
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).
Diffstat (limited to 'pkgs/applications/misc/mkgmap/default.nix')
0 files changed, 0 insertions, 0 deletions