From 22ff21d8bd2f69bfb77716de95a2531d0869e8ec Mon Sep 17 00:00:00 2001 From: Erik Bershel <110455084+erik-bershel@users.noreply.github.com> Date: Thu, 28 Mar 2024 18:08:30 +0100 Subject: [PATCH] [macOS] Force curl to use IPv4 (#9586) --- images/macos/assets/bashrc | 1 + images/macos/scripts/build/install-homebrew.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/images/macos/assets/bashrc b/images/macos/assets/bashrc index ca021fd7..de4a49d7 100644 --- a/images/macos/assets/bashrc +++ b/images/macos/assets/bashrc @@ -28,6 +28,7 @@ export DOTNET_MULTILEVEL_LOOKUP=0 export HOMEBREW_NO_AUTO_UPDATE=1 export HOMEBREW_NO_INSTALL_CLEANUP=1 export HOMEBREW_CASK_OPTS="--no-quarantine" +export HOMEBREW_CURLRC=1 export BOOTSTRAP_HASKELL_NONINTERACTIVE=1 export BOOTSTRAP_HASKELL_INSTALL_NO_STACK_HOOK=1 diff --git a/images/macos/scripts/build/install-homebrew.sh b/images/macos/scripts/build/install-homebrew.sh index 4a72cf2e..85482869 100644 --- a/images/macos/scripts/build/install-homebrew.sh +++ b/images/macos/scripts/build/install-homebrew.sh @@ -36,6 +36,9 @@ brew_smart_install jq echo "Installing curl..." brew_smart_install curl +echo "Configuring curl to resolve names with IPv4..." +echo '--ipv4' >> ~/.curlrc + echo "Installing wget..." brew_smart_install "wget"