init(_:root:cause:)
Incompatibility.swift:29init(_ terms: Term..., root: DependencyResolutionNode, cause: Cause = .root) throws
init(_ terms: Term..., root: DependencyResolutionNode, cause: Cause = .root) throws
s12PackageGraph15IncompatibilityV_4root5causeAcA4TermVd_AA24DependencyResolutionNodeOAC5CauseOtKcfc
What are these?3I3U6
import PackageGraph
struct Incompatibility
A set of terms that are incompatible with each other and can therefore not all be true at the same time. In dependency resolution, these are derived from version requirements and when running into unresolvable situations.
struct Term
A term represents a statement about a package that may be true or false.
enum DependencyResolutionNode
A node in the dependency resolution graph.
indirect enum Cause
Every incompatibility has a cause to explain its presence in the derivation graph. Only the root incompatibility uses .root
. All other incompatibilities are either obtained from dependency constraints, decided upon in decision making or derived during unit propagation or conflict resolution. Using this information we can build up a derivation graph by following the tree of causes. All leaf nodes are external dependencies and all internal nodes are derived incompatibilities.
init(_ terms: OrderedCollections.OrderedSet<Term>, root: DependencyResolutionNode, cause: Cause) throws
init(terms: OrderedCollections.OrderedSet<Term>, cause: Cause)
let cause: Cause
var description: String { get }
let terms: OrderedCollections.OrderedSet<Term>