Skip to content

Force use specific dependency (ignore some dependencies) #5100

@slayer

Description

@slayer

Hi there.

We all know how bundler says on update:

Bundler could not find compatible versions for gem "xxxx":
  In snapshot (Gemfile.lock):
    xxxx (= 1.12.5)

  In Gemfile:
    xxxx (~> 1.12.5)

    yyyy (~> 0.3.1) was resolved to 0.3.1, which depends on
      xxxx (~> 1.10.3)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

Also we know, we can't force author of gem yyyy update dependencies.
Is there way to avoid a mess with gem forking to update just 1 line to make bundler happy?

I believe it will be great to have an option to force bundler ignore some dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions