From ed8a3e08e2f227a37730b697b0e4e2c7d63e27ff Mon Sep 17 00:00:00 2001 From: Blake Friedman Date: Fri, 17 Feb 2023 08:08:39 -0800 Subject: [PATCH] brew should overwrite existing python links (#36192) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36192 Builds are failing on CI because brew bails out when it tries installing Python 3.1. The image already has an existing version of Python 3, which we should overwrite. {F876436464} This seems to be a known issue [1] with Brew. In this case it seems safe to overwrite. Changelog: [General][Changed] - Brew overwrites system Python 3. [1] https://github.com/actions/setup-python/issues/577#issuecomment-1431468702 Reviewed By: cipolleschi Differential Revision: D43391941 fbshipit-source-id: 9b0cb234eeb0b7473b17b5ebfa6ed12c6448760f --- .circleci/config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1411550f068e6b..af45646a49a712 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -593,6 +593,11 @@ jobs: - run: name: "Brew: Tap wix/brew" command: brew tap wix/brew + - run: + # Python 3.10 already exists in the environment, this is a workaround for: + # https://github.com/actions/setup-python/issues/577 + name: "Unlink environment's Python 3.10" + command: brew unlink python@3.10 - brew_install: package: applesimutils watchman