diff --git a/kokoro/macos/prepare_build_macos_rc b/kokoro/macos/prepare_build_macos_rc index 830e7eee67..d1154e3f5c 100755 --- a/kokoro/macos/prepare_build_macos_rc +++ b/kokoro/macos/prepare_build_macos_rc @@ -37,10 +37,14 @@ sudo rm -rf \ sudo rm -rf \ /usr/local/bin/2to3* \ /usr/local/bin/idle3* \ + /usr/local/bin/pip3 \ /usr/local/bin/pydoc3* \ /usr/local/bin/python3* \ /usr/local/bin/pyvenv* +git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow +git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow + brew update brew upgrade