message: macOS doesn't have wget
  Make building easier on macOS by using curl instead of wget
  because wget isn't part of macOS, and wget installed from
  brew has trouble resolving certificates appropriately.
diff: @@ -63,12 +63,17 @@ download_and_extract() {
  elif [[ "${url}" == *zip ]]; then
  tempdir=$(mktemp -d)
  tempdir2=$(mktemp -d)
  - wget -P ${tempdir} ${url}
  - unzip ${tempdir}/* -d ${tempdir2}
  + if [[ "$OSTYPE" == "darwin"* ]]; then
  + # macOS (AKA darwin) doesn't have wget.
  + (cd "${tempdir}"; curl --remote-name --silent --location "${url}")
  + else
  + wget -P "${tempdir}" "${url}"
  + fi
  + unzip "${tempdir}"/* -d "${tempdir2}"
  # unzip has no strip components, so unzip to a temp dir, and move the files
  # we want from the tempdir to destination.
  - cp -R ${tempdir2}/*/* ${dir}/
  - rm -rf ${tempdir2} ${tempdir}
  + cp -R "${tempdir2}"/*/* "${dir}"/
  + rm -rf "${tempdir2}" "${tempdir}"
  fi
  # Delete any potential BUILD files, which would interfere with Bazel builds.
  