[macOS] Install packer using tap (#10696)

This commit is contained in:
sarathrajsrinivasan
2024-09-30 03:36:39 -07:00
committed by GitHub
parent 01d5873a78
commit 740ab068bc

View File

@@ -16,9 +16,14 @@ for package in $common_packages; do
# 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
if [[ $package == "packer" ]]; then
# Packer has been deprecated in Homebrew. Use tap to install Packer.
brew install hashicorp/tap/packer
else
brew_smart_install "$package"
fi
fi
done
cask_packages=$(get_toolset_value '.brew.cask_packages[]')