PackageGraphRoot
Represents the inputs to the package graph.
PackageGraphRoot.swift:34struct PackageGraphRoot
Citizens in PackageGraph
Type members
init(input: PackageGraphRootInput, manifests: [AbsolutePath : Manifest], explicitProduct: String?, dependencyMapper: DependencyMapper?, observabilityScope: ObservabilityScope
) Create a package graph root. Note this quietly skip inputs for which manifests are not found. this could be because the manifest failed to load or for some other reasons
Instance members
var dependencies: [PackageDependency]
The top level dependencies.
var manifests: [PackageIdentity : Manifest]
The root manifests.
var packageReferences: [PackageReference]
The root package references.
let packages: [PackageIdentity : (reference: PackageReference, manifest: Manifest)]
The root packages.
func constraints(
) throws -> [PackageContainerConstraint] Returns the constraints imposed by root manifests + dependencies.