class ChefCLI::Policyfile::SolutionDependencies
def cookbook_deps_conflicts_for(cookbook_name, version)
def cookbook_deps_conflicts_for(cookbook_name, version) conflicts = [] transitive_deps = find_cookbook_dep_by_name_and_version(cookbook_name, version) transitive_deps.each do |name, constraint| existing_cookbook = find_cookbook_dep_by_name(name) if existing_cookbook.nil? conflicts << "Cookbook #{name} isn't included in the existing cookbook set." elsif !constraint.satisfies?(existing_cookbook[0].version) conflicts << "Dependency on #{name} #{constraint} conflicts with existing version #{existing_cookbook[0]}" end end conflicts end