Instance Methodswift-package-manager 6.0.1PackageGraph
solve(constraints:)
Execute the resolution algorithm to find a valid assignment of versions.
func solve(constraints: [Constraint]) -> Result<[DependencyResolverBinding], Error>
Execute the resolution algorithm to find a valid assignment of versions.
func solve(constraints: [Constraint]) -> Result<[DependencyResolverBinding], Error>
s12PackageGraph25PubGrubDependencyResolverV5solve11constraintss6ResultOySayAA0eF7BindingVGs5Error_pGSayAA0A19ContainerConstraintVG_tF
What are these?1RACM
import PackageGraph
struct PubGrubDependencyResolver
The solver that is able to transitively resolve a set of package constraints specified by a root package.
typealias Constraint = PackageContainerConstraint
The type of the constraints the resolver operates on.
@frozen enum Result<Success, Failure> where Failure : Error, Success : ~Copyable
A value that represents either a success or a failure, including an associated value in each case.
struct DependencyResolverBinding
protocol Error : Sendable
A type representing an error value that can be thrown.
init(provider: PackageContainerProvider, pins: PinsStore.Pins = [:], skipDependenciesUpdates: Bool = false, prefetchBasedOnResolvedFile: Bool = false, observabilityScope: ObservabilityScope, delegate: DependencyResolverDelegate? = nil)
enum PubgrubError