-
Notifications
You must be signed in to change notification settings - Fork 23
Bundler 2.7 compatibility #414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
637482a to
7c5221a
Compare
|
Alternatively, we could also have something like: def write_bundle_shim(shims_path, bundler_version: nil)
script = <<~INSTALLER
require 'rubygems/installer'
spec = Gem::Specification.find_by_name("bundler", '#{bundler_version || '>= 0'}')
installer = Gem::Installer.for_spec(spec)
installer.generate_bin_script("bundle", '#{shims_path}')
INSTALLER
pid = fork { exec(env_for_child, Gem.ruby, "-e", script) }
Process.wait(pid)
raise "Could not generate 'bundle' binstub" unless $CHILD_STATUS.success?
endInstead of hardcoding the contents of the shim... @doudou thoughts? |
|
Tagging @dbcesar since you mentioned you would like to have a look |
7c5221a to
4405570
Compare
|
Just did a rebase on master. |
It feels better. The fork/exec/wait is done by |
|
Hey ... I might be a tiny bit lost here.
|
Yes, my initial plan was to store the path to the gem-generated stub in a In hindsight, maybe we could have a "minimal" shim that just exec's the stub generated by gem. Similar to what we do with |
Sounds good. The bundler/rubygem's people plan is definitely to have people use the gem-generated stub, better follow their plan ;-) |
4405570 to
df831c1
Compare
|
@doudou Done! |
On top of #395
See https://bundler.io/changelog.html#270-2025-07-16
and ruby/rubygems#8345