diff --git a/README.md b/README.md index d1c19b5..296fe00 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ - [Dependencies](#dependencies) - [Install](#install) - [Why?](#why) +- [Supported Versions](#supported-versions) - [Default Cloud SDK Components](#default-cloud-sdk-components) - [Contributing](#contributing) - [License](#license) @@ -53,6 +54,10 @@ The asdf config file, `.tool-versions`, allows pinning each tool in your project When you update a version in `.tool-versions`, `asdf` will prompt all users who do not have the correct versions to upgrade. This enables whole teams to update their tools in unison. +# Supported Versions + +gcloud releases from 352.0.0 and higher can be installed. + # Default Cloud SDK Components `asdf-gcloud` can automatically install a set of Cloud SDK Components after each `asdf install gcloud `. To enable this feature you must have a file that lists one COMPONENT_ID per line. For example: diff --git a/bin/install b/bin/install index bd1489a..cfbac7e 100755 --- a/bin/install +++ b/bin/install @@ -32,7 +32,11 @@ install_gcloud() { log_success "extracted!" log_info "🚧 installing..." - "${ASDF_INSTALL_PATH}/install.sh" --usage-reporting=false --path-update=false --quiet + if [[ "${ASDF_INSTALL_VERSION}" > "352.0.0" ]]; then + "${ASDF_INSTALL_PATH}/install.sh" --usage-reporting=false --path-update=false --install-python=false --quiet + else + "${ASDF_INSTALL_PATH}/install.sh" --usage-reporting=false --path-update=false --quiet + fi # test executable test -x "${ASDF_INSTALL_PATH}/bin/gcloud" || log_failure_and_exit "Expected ${ASDF_INSTALL_PATH}/bin/gcloud to be executable." log_success "gcloud ${ASDF_INSTALL_VERSION} installed!"