From 8c98f6f5b692e865beee553cffdc85ab4f6f0e8c Mon Sep 17 00:00:00 2001 From: Blake Friedman Date: Fri, 17 Feb 2023 05:18:18 -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: e17484f3a4bdb1d126acb37172e7c3354233e6cd --- .circleci/config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e44489663a5fb8..01ddb9b2328cc9 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 >/dev/null + - 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