description
Incompatibility.swift:58var description: String { get }
var description: String { get }
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.
@frozen struct String
A Unicode string value that is a collection of characters.
init(_ terms: OrderedCollections.OrderedSet<Term>, root: DependencyResolutionNode, cause: Cause) throws
init(_ terms: Term..., root: DependencyResolutionNode, cause: Cause = .root) throws
init(terms: OrderedCollections.OrderedSet<Term>, cause: Cause)
let cause: Cause
let terms: OrderedCollections.OrderedSet<Term>
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.