From 5b215c413bb9a97672f4469ab27162c4a548b280 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 5 Oct 2021 12:54:35 +0530 Subject: [PATCH] Add patch for ca-certificate and reset cache on darwin --- src/scripts/cache.sh | 1 + src/scripts/darwin.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/scripts/cache.sh b/src/scripts/cache.sh index 50f4fb3..b68d4c8 100644 --- a/src/scripts/cache.sh +++ b/src/scripts/cache.sh @@ -86,6 +86,7 @@ data() { dir=$(extension_dir_linux "$api_version") sudo mkdir -p "$dir/deps" && fix_ownership "$dir" elif [ "$os" = "Darwin" ]; then + date='20211005' api_version=$(get_api_version) dir=$(extension_dir_darwin "$api_version") sudo mkdir -p "$dir/deps" && fix_ownership "$dir" diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index 31303ea..423a66e 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -158,6 +158,8 @@ setup_dependencies() { if [[ -n "${extensions_array[*]// /}" ]]; then add_brew_tap "$php_tap" add_brew_tap "$ext_tap" + # Remove once updated on the images + curl -o "$tap_dir"/"$core_tap"/Formula/ca-certificates.rb -sL https://raw.githubusercontent.com/"$core_tap"/master/Formula/ca-certificates.rb for extension in "${extensions_array[@]}"; do IFS=' ' read -r -a dependency_array <<<"$(get_dependencies "$extension")" IFS=' ' read -r -a extension_array <<<"$(echo "${dependency_array[@]}" | grep -Eo "[a-z]*@" | sed 's/@//' | tr '\n' ' ')"