Skip to content

Commit 9f94c69

Browse files
hsbtclaude
andcommitted
macos: Use an isolated prefix on macos-15-intel
The macos-15-intel runner image ships a pre-installed Ruby under /usr/local whose default-gem directory shares the 3.3.0 ABI path with the build. With the default prefix, Gem.default_dir scans that directory and dies on a stale bundler default-gem stub while autoloading rake during make check. Build under an isolated prefix on Intel only. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent ee66ecf commit 9f94c69

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/macos.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ jobs:
5353

5454
env:
5555
GITPULLOPTIONS: --no-tags origin ${{ github.ref }}
56+
# The macos-15-intel runner image ships a pre-installed Ruby under
57+
# /usr/local whose default-gem dir collides with the build's on the
58+
# 3.3.0 ABI path. Build under an isolated prefix so Gem.default_dir does
59+
# not scan that stale bundler default-gem stub during rake autoload.
60+
PREFIX: ${{ matrix.os == 'macos-15-intel' && '/tmp/ruby-prefix' || '' }}
5661

5762
runs-on: ${{ matrix.os }}
5863

@@ -99,7 +104,7 @@ jobs:
99104
continue-on-error: true
100105

101106
- name: Run configure
102-
run: ../src/configure -C --disable-install-doc ${ruby_configure_args} ${{ matrix.configure_args }}
107+
run: ../src/configure -C --disable-install-doc ${PREFIX:+--prefix="$PREFIX"} ${ruby_configure_args} ${{ matrix.configure_args }}
103108

104109
- run: make prepare-gems
105110
if: ${{ matrix.test_task == 'test-bundled-gems' }}

0 commit comments

Comments
 (0)