Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Specifying bundler version with underscores but still getting latest installed version #7345

Closed
eebbesen opened this issue Sep 5, 2019 · 2 comments · Fixed by rubygems/rubygems#2908

Comments

@eebbesen
Copy link

eebbesen commented Sep 5, 2019

Per https://stackoverflow.com/questions/56880223/using-multiple-bundler-versions, rbenv/rbenv#235, et. al. using underscores around the version number should allow me to use different bundler versions on my machine. However, this is not working for me.

When I specify a bundler version that I don't have installed bundler correctly complains though, so it seems to be version checking at least.

$ gem list bundler

*** LOCAL GEMS ***

bundler (2.0.2, 1.17.3, 1.17.0)

$ bundle _1.17.3_ -v
Bundler version 2.0.2

$ bundle _1.17.2_ -v
/Users/user/.rbenv/versions/2.3.6/lib/ruby/2.3.0/rubygems.rb:241:in `bin_path': can't find gem bundler (= 1.17.2) (Gem::GemNotFoundException)
  from /Users/user/.rbenv/versions/2.3.6/bin/bundle:22:in `<main>'

I'm on OS X Mojave 10.14.6. This persists even after gem uninstall and reinstall of bundler 2.0.2.

I'm looking for suggestions on debugging this. --verbose isn't helping:

$ bundle _1.17.3_ install --verbose
Running `bundle install --verbose` with bundler 2.0.2
Found no changes, using resolution from the lockfile
Using concurrent-ruby 1.0.5

(repost of https://stackoverflow.com/questions/57794149/cannot-specify-bundler-version-when-multiple-are-installed)

@eebbesen eebbesen changed the title Specifying bundler version with underscores not working for me Specifying bundler version with underscores but still getting latest installed version Sep 5, 2019
ghost pushed a commit to rubygems/rubygems that referenced this issue Sep 24, 2019
2906: Backport ruby core r=hsbt a=hsbt

# Description:

Fixed the warnings with keyword separation feature of Ruby 2.7 and rondomly failed on GitHub Actions.
______________

# Tasks:

- [ ] Describe the problem / feature
- [ ] Write tests
- [ ] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).


2908: Fix underscore version selection for bundler r=hsbt a=deivid-rodriguez

# Description:

When rubygems' underscore version selection is used with bundler itself, it doesn't work. This PR should fix it.

# Tasks:

- [x] Describe the problem / feature
- [x] Write tests
- [x] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).

Fixes rubygems/bundler#7345.
Closes rubygems/bundler#7349.

Co-authored-by: Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
ghost pushed a commit to rubygems/rubygems that referenced this issue Sep 24, 2019
2908: Fix underscore version selection for bundler r=hsbt a=deivid-rodriguez

# Description:

When rubygems' underscore version selection is used with bundler itself, it doesn't work. This PR should fix it.

# Tasks:

- [x] Describe the problem / feature
- [x] Write tests
- [x] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).

Fixes rubygems/bundler#7345.
Closes rubygems/bundler#7349.

Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
ghost pushed a commit to rubygems/rubygems that referenced this issue Sep 25, 2019
2906: Backport ruby core r=hsbt a=hsbt

# Description:

Fixed the warnings with keyword separation feature of Ruby 2.7 and rondomly failed on GitHub Actions.
______________

# Tasks:

- [ ] Describe the problem / feature
- [ ] Write tests
- [ ] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).


2908: Fix underscore version selection for bundler r=hsbt a=deivid-rodriguez

# Description:

When rubygems' underscore version selection is used with bundler itself, it doesn't work. This PR should fix it.

# Tasks:

- [x] Describe the problem / feature
- [x] Write tests
- [x] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).

Fixes rubygems/bundler#7345.
Closes rubygems/bundler#7349.

Co-authored-by: Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
@eebbesen
Copy link
Author

Cheers @deivid-rodriguez!

@deivid-rodriguez
Copy link
Member

No problem!

hsbt pushed a commit to rubygems/rubygems that referenced this issue Feb 18, 2020
2906: Backport ruby core r=hsbt a=hsbt

# Description:

Fixed the warnings with keyword separation feature of Ruby 2.7 and rondomly failed on GitHub Actions.
______________

# Tasks:

- [ ] Describe the problem / feature
- [ ] Write tests
- [ ] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).

2908: Fix underscore version selection for bundler r=hsbt a=deivid-rodriguez

# Description:

When rubygems' underscore version selection is used with bundler itself, it doesn't work. This PR should fix it.

# Tasks:

- [x] Describe the problem / feature
- [x] Write tests
- [x] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).

Fixes rubygems/bundler#7345.
Closes rubygems/bundler#7349.

Co-authored-by: Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
hsbt pushed a commit to rubygems/rubygems that referenced this issue Feb 18, 2020
2906: Backport ruby core r=hsbt a=hsbt

# Description:

Fixed the warnings with keyword separation feature of Ruby 2.7 and rondomly failed on GitHub Actions.
______________

# Tasks:

- [ ] Describe the problem / feature
- [ ] Write tests
- [ ] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).

2908: Fix underscore version selection for bundler r=hsbt a=deivid-rodriguez

# Description:

When rubygems' underscore version selection is used with bundler itself, it doesn't work. This PR should fix it.

# Tasks:

- [x] Describe the problem / feature
- [x] Write tests
- [x] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).

Fixes rubygems/bundler#7345.
Closes rubygems/bundler#7349.

Co-authored-by: Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
pombredanne pushed a commit to nexB/univers that referenced this issue Dec 7, 2021
2906: Backport ruby core r=hsbt a=hsbt

# Description:

Fixed the warnings with keyword separation feature of Ruby 2.7 and rondomly failed on GitHub Actions.
______________

# Tasks:

- [ ] Describe the problem / feature
- [ ] Write tests
- [ ] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).


2908: Fix underscore version selection for bundler r=hsbt a=deivid-rodriguez

# Description:

When rubygems' underscore version selection is used with bundler itself, it doesn't work. This PR should fix it.

# Tasks:

- [x] Describe the problem / feature
- [x] Write tests
- [x] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).

Fixes rubygems/bundler#7345.
Closes rubygems/bundler#7349.

Co-authored-by: Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants