Commit 869a83f
Fix pack generation in bin/dev by preventing Bundler auto-exec interception
When running bin/dev, pack generation was failing with "Could not find
command 'react_on_rails:generate_packs'" because Bundler was intercepting
the system call and trying to execute it as a gem executable command
instead of passing it through to rake.
The fix wraps the bundle exec subprocess call with Bundler.with_unbundled_env
to prevent Bundler from intercepting when already running inside a Bundler
context.
Added with_unbundled_context helper method that supports both new
(with_unbundled_env) and legacy (with_clean_env) Bundler APIs for
backwards compatibility.
Fixes #2084
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent e2ca31a commit 869a83f
1 file changed
+27
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
149 | 170 | | |
150 | | - | |
| 171 | + | |
151 | 172 | | |
152 | 173 | | |
153 | 174 | | |
| |||
0 commit comments