Project

General

Profile

Actions

Bug #15314

closed

Bundler with 2.6 fails when installing dependencies into a --path with --binstubs

Added by schneems (Richard Schneeman) over 5 years ago. Updated about 5 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.6.0preview3 (2018-11-06 trunk 65578) [x86_64-darwin17]
[ruby-core:89843]

Description

When using Ruby 2.6 and installing gems via bundler's --path option, there is an exception:

$ 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.

Actions #1

Updated by hsbt (Hiroshi SHIBATA) over 5 years ago

  • Status changed from Open to Assigned

Updated by hsbt (Hiroshi SHIBATA) over 5 years ago

  • Assignee set to hsbt (Hiroshi SHIBATA)

Updated by hsbt (Hiroshi SHIBATA) over 5 years ago

  • Status changed from Assigned to Feedback

Updated by schneems (Richard Schneeman) over 5 years ago

I confirm this issue is no longer a problem for Heroku. Thanks for your work!

I did hit a segfault though with bootsnap https://gist.github.com/schneems/95ad82f39c8c7f24fe228d3bfda2937e. It looks unrelated, I'll try to reproduce locally and open a new issue.

Actions #5

Updated by hsbt (Hiroshi SHIBATA) about 5 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0