Issue #15314 has been reported by schneems (Richard Schneeman).

----------------------------------------
Bug #15314: Bundler with 2.6 fails when installing dependencies into a --path with --binstubs
https://bugs.ruby-lang.org/issues/15314

* Author: schneems (Richard Schneeman)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.0preview3 (2018-11-06 trunk 65578) [x86_64-darwin17]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
When using Ruby 2.6 and installing gems via bundler's `--path` option, there is an exception:

~~~ text
$ ruby -v
ruby 2.6.0preview3 (2018-11-06 trunk 65578) [x86_64-darwin17]
$ rails -v
Rails 5.2.1
$ rails new myapp-2-6
$ cd myapp-2-6/
$ bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
$ export PATH="vendor/bundle/bin:$PATH"
$ bundle -v
Traceback (most recent call last):
  1: from ./vendor/bundle/bin/bundle:104:in `<main>'
./vendor/bundle/bin/bundle:104:in `load': cannot load such file -- /Users/rschneeman/.rubies/ruby-2.6.0-preview3/lib/ruby/gems/2.6.0/gems/bundler-1.17.1/bin/bundle (LoadError)

~~~


This same script works fine on Ruby 2.5.3.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>