-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
intercom/heroku-buildpack-ruby-fork
#4Labels
Description
The issue
I changed my username on my Mac from jackmccracken to jackmc. This seems to have confused bundler's plugin index which stores the absolute path for each plugin:
[jackmc@jackbook ~/some/project] % cat ~/.bundle/plugin/index
---
commands:
hooks:
after-install:
- "extended_bundler-errors"
before-install-all:
- "extended_bundler-errors"
load_paths:
extended_bundler-errors:
- "/Users/jackmccracken/.bundle/plugin/gems/extended_bundler-errors-0.3.1/lib"
plugin_paths:
extended_bundler-errors: "/Users/jackmccracken/.bundle/plugin/gems/extended_bundler-errors-0.3.1"
sources:
Note /Users/jackmccracken (my old username). This index should probably be invalidated if bundler realizes that its .bundle directory location has changed.
Steps to reproduce (and workaround)
- Install some bundler plugin (for example https://github.com/jules2689/extended_bundler-errors)
- Run
bundle installin some project and observe that it works - Change your username on macOS (not sure if this happens on other platforms): https://support.apple.com/en-ca/HT201548
- Run
bundle installin any project, observe the following error (substituting your old username forjackmccracken:/opt/rubies/2.5.3/lib/ruby/site_ruby/2.5.0/bundler/plugin.rb:271:in 'load': cannot load such file -- /Users/jackmccracken/.bundle/plugin/gems/extended_bundler-errors-0.3.1/plugins.rb (LoadError) - Edit
~/.bundle/plugin/index, swapping out the old username for the new one bundle installagain, observe that it works again
Reactions are currently unavailable