Skip to content

How to load rubygems_plugin.rb when running bundle install #1516

Answered by mislav
impostorsguides asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the detailed dive! I didn't know this, and you're right: in my testing it looks like bundle commands no longer cause the rubygems_plugin.rb file to be loaded from LOAD_PATH.

You are also right that Bundler now has its own plugin API, but it doesn't look like rbenv can automatically inject its own plugin via environment variables. Instead, it looks like a user needs to explicitly enable a plugin via a bundle command.

I'd be fine with giving up on rbenv hooking into bundle install, and instead just leaving the gem install hook. People who use bundler can easily generate binstubs for their own project, which alleviates the need for rbenv to keep its shims up to date.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@impostorsguides
Comment options

Answer selected by impostorsguides
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants