We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ff10b0 commit 6655b88Copy full SHA for 6655b88
1 file changed
.github/workflows/pr-check.yml
@@ -414,10 +414,11 @@ jobs:
414
- name: Homebrew Python
415
if: startsWith( matrix.image, 'homebrew')
416
run: |
417
- # homebrew/brew:4.4.6 broke running `brew install` as root.
418
- # As a workaround, running `brew update` and ignoring errors coming from it fixes `brew install`.
419
- brew update || true
420
- brew install python@3.12 python@3.11
+ # The job container runs as root so Actions checkout/tooling can write to the
+ # mounted workspace, but Homebrew's prefix is owned by linuxbrew and recent
+ # homebrew/brew images have been brittle when `brew install` runs as root.
+ su - linuxbrew -c 'brew update || true'
421
+ su - linuxbrew -c 'brew install python@3.12 python@3.11'
422
shell: bash
423
424
# Rust
0 commit comments