Why did the package create the package in the X directory?

I ran

bundle install 

and it ended without error, except in the very last line it printed:

 Your bundle is complete! It was installed into ./linecache 

There is no mention of linecache in the Gemfile. I even tried the extreme removal measure of my Gemfile.lock and called bundle install again. The same result.

What's happening?

+1
ruby-on-rails-3 bundler
source share
1 answer

Figured it out. I previously typed:

 bundle install linecache 

(this is a different story). bundle will remember linecache and use it as a directory for subsequent packages. The simplest (albeit heavy) fix is ​​to remove the .bundle configuration file from your toplevel Rails project directory:

 rm .bundle/config 

... and let the bundle recreate it the next time you install the package. A slightly cleaner should edit your_project_directory/.bundle/config and remove the line that reads:

 BUNDLE_PATH: ... 

Hope this saves someone else from scratching my head.

+2
source share

All Articles