Commit 81f3fac
committed
Fix: prevent patching global gem homes when bundle stores exist
When env/config bundle roots have stores, get_gem_paths was appending
gem env homes and apply was patching every gem copy including the
shared global home. This caused permission failures or unwanted
mutation of machine-wide gems even though bundle exec loads the
bundle copy.
Change the early-return condition to trigger for ANY bundle stores
(not just default_root_has_stores), preventing global gem homes from
being added as patch targets when bundle stores exist.1 parent af59554 commit 81f3fac
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments