Skip to content
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

Installing bundler with --default breaks bundler #2661

Closed
p-mongo opened this issue Feb 27, 2019 · 3 comments
Closed

Installing bundler with --default breaks bundler #2661

p-mongo opened this issue Feb 27, 2019 · 3 comments

Comments

@p-mongo
Copy link

p-mongo commented Feb 27, 2019

I was sent here from rubygems/bundler#6992.

On a fresh ruby 2.6.1 installation:

speed% gem install bundler --default
Fetching bundler-2.0.1.gem
Successfully installed bundler-2.0.1 as a default gem
Done installing documentation for bundler after 0 seconds
1 gem installed
speed% pwd
/home/w
speed% gem list|grep bund
bundler (default: 2.0.1, default: 1.17.2)
speed% bundle
Traceback (most recent call last):
	1: from /home/w/.rbenv/versions/2.6.1/bin/bundle:23:in `'
/home/w/.rbenv/versions/2.6.1/bin/bundle:23:in `load': cannot load such file -- /home/w/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/exe/bundle (LoadError)

If I now uninstall bundler, it is still broken:

speed% gem uni bundler
speed% bundle            
Traceback (most recent call last):
	1: from /home/w/.rbenv/versions/2.6.1/bin/bundle:23:in `'
/home/w/.rbenv/versions/2.6.1/bin/bundle:23:in `load': cannot load such file -- /home/w/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/exe/bundle (LoadError)

Somehow installing bundler again installs version 2.0.1, but when I run bundle I get 1.17.2:

speed% gem install bundler
Successfully installed bundler-2.0.1
Parsing documentation for bundler-2.0.1
Installing ri documentation for bundler-2.0.1
bDone installing documentation for bundler after 1 seconds
1 gem installed
u%                                                                                                                             speed% bundle
Could not locate Gemfile
speed% which bundler
/home/w/.rbenv/shims/bundler
speed% bundle -v
Bundler version 1.17.2
speed% gem -v
3.0.1

At the end of all this I still have two default bundlers:

speed% gem list|grep bund
bundler (default: 2.0.1, default: 1.17.2)

So far I have not been successful in getting bunder 2 installed on this machine, though I have lock files created by bundler 2 hence clearly I succeeded in getting it installed elsewhere.

@deivid-rodriguez
Copy link
Member

Hei @p-mongo! I also found out about this recently and fixed it in #2649. I'm hoping to move forward a new release including that fix soon.

I'm going to close this. Feel free to try out that patch and if it's not quite working for you, let me know!

@p-mongo
Copy link
Author

p-mongo commented Feb 27, 2019

Thanks I'll wait for a release.

@deivid-rodriguez
Copy link
Member

You are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants