From 3b4bb985fba490bc9aff310eca22cb9d3d5cdeca Mon Sep 17 00:00:00 2001 From: Jon Ross-Perkins Date: Mon, 14 Nov 2022 14:33:03 -0800 Subject: [PATCH] Explicitly install python with --overwrite (#2393) ``` ==> Pouring python@3.11--3.11.0.monterey.bottle.tar.gz Error: The brew link step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/2to3-3.11 Target /usr/local/bin/2to3-3.11 already exists. You may want to remove it: rm '/usr/local/bin/2to3-3.11' ``` Installing llvm with --overwrite didn't seem to pass it on dependencies, particularly python (https://github.com/carbon-language/carbon-lang/actions/runs/3464174572/jobs/5785378508). So this instead installs python separately, and then --overwrite works. See https://github.com/carbon-language/carbon-lang/actions/runs/3464364789/jobs/5785802783 for the example passing run. The actions on this PR will probably still use the trunk version. --- .github/workflows/tests.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index f13ebe946097..a311331bb621 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -68,6 +68,11 @@ jobs: run: | echo '*** Updating brew' brew update + echo '*** Installing Python' + # Explicitly use --overwrite because of file conflicts in + # /usr/local/bin with GitHub's installed version. If this stops being + # required, great! + brew install --force-bottle --overwrite python@3.11 echo '*** Installing LLVM deps' brew install --force-bottle --only-dependencies llvm echo '*** Installing LLVM itself'