Running the same command with verbose enabled tells us that bundler
ignores the ffi gem because it's missing extensions:
root@rubygems-test:~/test# bundle --local --verbose
Running `bundle install --local --verbose` with bundler 2.2.0.rc.1
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle
as root will break this application for all non-root users on this machine.
Found changes from the lockfile, re-resolving dependencies because the list of
sources changed, the dependencies in your gemfile changed, you added a new
platform to your gemfile
Source rubygems repository https://rubygems.org/ or installed locally is ignoring
#<Bundler::StubSpecification name=ffi version=1.12.2 platform=ruby> because it
is missing extensions
Could not find gem 'ffi' in any of the gem sources listed in your Gemfile.
Bundler::GemNotFound: Could not find gem 'ffi' in any of the gem sources listed
in your Gemfile.
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/resolver.rb:313:in
`block in verify_gemfile_dependencies_are_found!'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/resolver.rb:281:in
`each'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/resolver.rb:281:in
`verify_gemfile_dependencies_are_found!'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/resolver.rb:49:in
`start'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/resolver.rb:22:in
`resolve'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/definition.rb:264:in
`resolve'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/definition.rb:175:in
`specs'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/definition.rb:156:in
`resolve_with_cache!'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/installer.rb:304:in
`resolve_if_needed'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/installer.rb:84:in
`block in run'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/process_lock.rb:12:in
`block in lock'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/process_lock.rb:9:in
`open'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/process_lock.rb:9:in
`lock'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/installer.rb:73:in
`run'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/installer.rb:25:in
`install'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/cli/install.rb:64:in
`run'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/cli.rb:261:in
`block in install'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/settings.rb:121:in
`temporary'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/cli.rb:260:in
`install'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in
`run'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in
`invoke_command'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/vendor/thor/lib/thor.rb:392:in
`dispatch'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/cli.rb:30:in
`dispatch'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/vendor/thor/lib/thor/base.rb:485:in
`start'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/cli.rb:24:in
`start'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/exe/bundle:49:in `block
in <top (required)>'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/lib/bundler/friendly_errors.rb:117:in
`with_friendly_errors'
/usr/share/rubygems-integration/all/gems/bundler-2.2.0.rc.1/exe/bundle:37:in
`<top (required)>'
/usr/bin/bundle:23:in `load'
/usr/bin/bundle:23:in `<main>'
--
Lucas Kanashiro