Skip to content

Commit 130f41a

Browse files
authored
apacheGH-15092: [CI][C++][Homebrew] Ensure removing Python related commands (again) (apache#15093)
This is a bug at the same place as apache#15025 . We must remove `2to3-3.11 ` for this time. ``` ==> Pouring python@ 3.11--3.11.1.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' ``` * Closes: apache#15092 Authored-by: Hirokazu SUZUKI (heronshoes) <heronshoes877@gmail.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
1 parent be96d20 commit 130f41a

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/cpp.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ jobs:
158158
submodules: recursive
159159
- name: Install Dependencies
160160
run: |
161-
rm -f /usr/local/bin/2to3 || :
162-
rm -f /usr/local/bin/idle3 || :
163-
rm -f /usr/local/bin/pydoc3 || :
164-
rm -f /usr/local/bin/python3 || :
161+
rm -f /usr/local/bin/2to3* || :
162+
rm -f /usr/local/bin/idle3* || :
163+
rm -f /usr/local/bin/pydoc3* || :
164+
rm -f /usr/local/bin/python3* || :
165165
rm -f /usr/local/bin/python3-config || :
166166
brew update --preinstall
167167
brew bundle --file=cpp/Brewfile

.github/workflows/python.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ jobs:
162162
- name: Install Dependencies
163163
shell: bash
164164
run: |
165-
rm -f /usr/local/bin/2to3 || :
166-
rm -f /usr/local/bin/idle3 || :
167-
rm -f /usr/local/bin/pydoc3 || :
168-
rm -f /usr/local/bin/python3 || :
165+
rm -f /usr/local/bin/2to3* || :
166+
rm -f /usr/local/bin/idle3* || :
167+
rm -f /usr/local/bin/pydoc3* || :
168+
rm -f /usr/local/bin/python3* || :
169169
rm -f /usr/local/bin/python3-config || :
170170
brew update --preinstall
171171
brew install --overwrite git

.github/workflows/ruby.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ jobs:
142142
- name: Install Homebrew Dependencies
143143
shell: bash
144144
run: |
145-
rm -f /usr/local/bin/2to3 || :
146-
rm -f /usr/local/bin/idle3 || :
147-
rm -f /usr/local/bin/pydoc3 || :
148-
rm -f /usr/local/bin/python3 || :
145+
rm -f /usr/local/bin/2to3* || :
146+
rm -f /usr/local/bin/idle3* || :
147+
rm -f /usr/local/bin/pydoc3* || :
148+
rm -f /usr/local/bin/python3* || :
149149
rm -f /usr/local/bin/python3-config || :
150150
brew update --preinstall
151151
brew install --overwrite git

0 commit comments

Comments
 (0)