Skip to content

Conditional dependency based on dependency resolution #9239

@voxik

Description

@voxik

Is there a way to have conditional dependencies? For example, I have this simple Gemfile:

source "https://www.rubygems.org"

group :development do
  gem 'minitest', '> 5.0'
  gem 'minitest-mock'
end

The problem here in fact is that the minitest-mock used to be part of minitest and it is needed just for minitest > 6.0. So is there a way to express that? I am not aware of any way to tap into the dependency resolution process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions