Commit f0bdc7c
committed
bundler/inline: re-exec script after installation
Alternate: #7930
Fix: #7930
When bundler inline has to install gems, it loads more dependencies
than when it goes through the fast path of all gems being installed.
One of them is `securerandom` so if trying to use `bundler/inline`
with a gem that have a dependency on `securerandom` that don't
match the default version, the script fails with `Gem::LoadError`.
This can be preproduced on Ruby 3.2.x, after making sure to
`gem uninstall securerandom` so only the default gem remains`, and
then running the following script:
```ruby
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'activesupport', '7.2.0' # depends on securerandom >= 0.3
end
require 'securerandom'
```1 parent b229140 commit f0bdc7c
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
0 commit comments