Posted 3 months ago. Visible to the public.

Bundler error: Downloading gem revealed dependencies not in the API

Recent Bundler (1.16.1) started complaining about missing dependencies in the Gemfile. This is due to a stricter handling of specifications (see attached link).

The error message looks like this:

Copy
Downloading example-gem-1.2.3 revealed dependencies not in the API or the lockfile (other-gem (< 3)). Either installing with `--full-index` or running `bundle update example-gem` should fix the problem.

However, bundle install --full-index did not any better for me, and bundle update is not always a viable solution.

Easiest solution

Open Gemfile.lock and add the dependencies manually by looking for example-gem and adding its dependencies underneath. You may even copy them from the error message.

Copy
... GEM specs: ... example-gem (1.2.3) + other-gem (< 3) DEPENDENCIES ...

bundle install should succeed now. If it doesn't, you have probably screwed its syntax. Check your Gemfile.lock again.

Once an application no longer requires constant development, it needs periodic maintenance for stable and secure operation. makandra offers monthly maintenance contracts that let you focus on your business while we make sure the lights stay on.

Author of this card:

Avatar
Dominik Schöler
Last edit:
3 months ago
by Arne Hartherz
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Dominik Schöler to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more