Commit f07643b
committed
Fix incompatible addon version activation when Bundler.setup fails after retry
When Bundler.setup raises GemNotFound or GitError and the retry has
already been attempted (or install_error is set), the rescue block fell
through without setting setup_error. This caused the server to boot
thinking setup succeeded, bypassing the load_addons guard. Without
Bundler constraining Gem.find_files, every installed version of every
addon gem was discovered, leading to version mismatches
(e.g., ruby-lsp-rails 0.4.2 loaded with ruby-lsp 0.26.5) and ArgumentError
crashes.
The StandardError rescue already handled this correctly - this aligns
the GemNotFound/GitError rescue to do the same.1 parent b1074ef commit f07643b
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| |||
0 commit comments