From b4ce42adf8aa2318b9bd91629f0f9757027f735e Mon Sep 17 00:00:00 2001 From: Evan <398607+xaocon@users.noreply.github.com> Date: Thu, 24 Dec 2020 01:15:00 -0500 Subject: [PATCH] Add python dependency to google-cloud-sdk (#96091) * Previous PR removes python dep instead of update The previous PR I wrote for this was intended to update to use the current version of python considered default by homebrew. While much of the PR was correct I inadvertently removed the dependency on python instead of allowing the default. * Use default `python` instead of `python@3.9` Co-authored-by: Markus Reiter * testing env spec * force use of brew python for install * Update google-cloud-sdk.rb Co-authored-by: Evan Pitstick Co-authored-by: Markus Reiter --- Casks/google-cloud-sdk.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Casks/google-cloud-sdk.rb b/Casks/google-cloud-sdk.rb index 95485bafb9f..68ef3b89434 100644 --- a/Casks/google-cloud-sdk.rb +++ b/Casks/google-cloud-sdk.rb @@ -7,6 +7,8 @@ cask "google-cloud-sdk" do desc "Set of tools to manage resources and applications hosted on Google Cloud" homepage "https://cloud.google.com/sdk/" + depends_on formula: "python" + stage_only true postflight do @@ -14,7 +16,8 @@ cask "google-cloud-sdk" do args: [ "--usage-reporting", "false", "--bash-completion", "false", "--path-update", "false", "--rc-path", "false", "--quiet" - ] + ], + env: { "CLOUDSDK_PYTHON" => Formula["python"].opt_bin/"python3" } end # Not actually necessary, since it would be deleted anyway.