[macOS] pin xcbeautify on OS12 (#9501)

This commit is contained in:
Mikhail Koliada
2024-03-13 14:27:57 +01:00
committed by GitHub
parent 82a37d19fa
commit 074e246081

View File

@@ -18,7 +18,13 @@ fi
common_packages=$(get_toolset_value '.brew.common_packages[]')
for package in $common_packages; do
echo "Installing $package..."
brew_smart_install "$package"
if is_Monterey && [[ $package == "xcbeautify" ]]; then
# Pin the version on Monterey as 2.0.x requires Xcode >=15.0 which is not available on OS12
xcbeautify_path=$(download_with_retry "https://raw.githubusercontent.com/Homebrew/homebrew-core/d3653e83f9c029a3fddb828ac804b07ac32f7b3b/Formula/x/xcbeautify.rb")
brew install "$xcbeautify_path"
else
brew_smart_install "$package"
fi
done
cask_packages=$(get_toolset_value '.brew.cask_packages[]')