Commit 49c0360
committed
Load the worktree RubyGems in the dev bundle binstub
After flattening, lib/ holds both RubyGems and Bundler, so activating the
Bundler gemspec prepends the worktree lib/ over the already-booted system
RubyGems. That partial overlay mixes a worktree Gem with an older system
Gem::ConfigFile, which breaks native extension installs on Ruby 3.2/3.3
(undefined install_extension_in_lib) and corrupts spec names elsewhere.
Route bin/bundle through switch_rubygems like bin/rspec and bin/test-unit
so it re-execs onto the worktree RubyGems consistently. Point the shared
gem home job at the worktree copy too, since the dev binstub can no longer
load a separately installed RubyGems, and the matrix is redundant for now.1 parent f50e07d commit 49c0360
2 files changed
Lines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 177 | + | |
| 178 | + | |
187 | 179 | | |
188 | 180 | | |
189 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
0 commit comments