Enumerationswift-package-manager 6.0.1Workspace
State
Represents the state of the managed dependency.
ManagedDependency.swift:27indirect enum State
Cases
case fileSystem(AbsolutePath)
The dependency is a local package on the file system.
case sourceControlCheckout(CheckoutState)
The dependency is a managed source control checkout.
case registryDownload(version: Version)
The dependency is downloaded from a registry.
case edited(basedOn: ManagedDependency?, unmanagedPath: AbsolutePath?)
The dependency is in edited state.
case custom(version: Version, path: AbsolutePath)
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (9) members.
Type members
static func edited(packageRef: PackageReference, subpath: RelativePath, basedOn: ManagedDependency?, unmanagedPath: AbsolutePath?
) -> ManagedDependency Create an edited dependency
static func fileSystem(packageRef: PackageReference
) throws -> ManagedDependency Create a dependency present locally on the filesystem.
static func registryDownload(packageRef: PackageReference, version: Version, subpath: RelativePath
) throws -> ManagedDependency Create a registry dependency downloaded
static func sourceControlCheckout(packageRef: PackageReference, state: CheckoutState, subpath: RelativePath
) throws -> ManagedDependency Create a source control dependency checked out
Instance members
var description: String
let packageRef: PackageReference
The package reference.
let state: State
The state of the managed dependency.
let subpath: RelativePath
The checked out path of the dependency on disk, relative to the workspace checkouts path.
func edited(subpath: RelativePath, unmanagedPath: AbsolutePath?
) throws -> ManagedDependency Create an editable managed dependency based on a dependency which was not in edit state.
Citizens in Workspace
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
Instance members
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.