Skip to content

Commit 2b84253

Browse files
[macos] add workaround for homebrew/core, homebrew/cask (#7866)
it was found that "git clone --depth 1 .." followed by "brew tap.." actually works even if some git index accidently broken
1 parent 073c513 commit 2b84253

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

images/macos/provision/configuration/environment/bashrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export DOTNET_ROOT=$HOME/.dotnet
2525
export DOTNET_MULTILEVEL_LOOKUP=0
2626

2727
export HOMEBREW_NO_AUTO_UPDATE=1
28-
export HOMEBREW_NO_INSTALL_FROM_API=1
2928
export HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=3650
3029
export HOMEBREW_CASK_OPTS="--no-quarantine"
3130

images/macos/provision/core/homebrew.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ echo "Installing Homebrew..."
88
HOMEBREW_INSTALL_URL="https://raw.githubusercontent.com/Homebrew/install/master/install.sh"
99
/bin/bash -c "$(curl -fsSL ${HOMEBREW_INSTALL_URL})"
1010

11+
git clone https://github.com/Homebrew/homebrew-cask $(brew --repository)/Library/Taps/homebrew/homebrew-cask --origin=origin --template= --config core.fsmonitor=false --depth 1
12+
git clone https://github.com/Homebrew/homebrew-core $(brew --repository)/Library/Taps/homebrew/homebrew-core --origin=origin --template= --config core.fsmonitor=false --depth 1
13+
14+
brew tap homebrew/cask
15+
brew tap homebrew/core
16+
1117
if [[ $arch == "arm64" ]]; then
1218
/opt/homebrew/bin/brew update
1319
/opt/homebrew/bin/brew upgrade

0 commit comments

Comments
 (0)