Instance Propertyswift-package-manager 6.0.3Workspace
path
The path of the artifact on disk
let path: AbsolutePath
The path of the artifact on disk
let path: AbsolutePath
s9WorkspaceAAC15ManagedArtifactV4path6Basics12AbsolutePathVvp
What are these?4PF6C
import Workspace
struct ManagedArtifact
A downloaded artifact managed by the workspace.
class Workspace
A workspace represents the state of a working project directory.
struct AbsolutePath
Represents an absolute file system path, independently of what (or whether anything at all) exists at that path in the file system at any given time. An absolute path always starts with a /
character, and holds a normalized string representation. This normalization is strictly syntactic, and does not access the file system in any way.
init(packageRef: PackageReference, targetName: String, source: Source, path: AbsolutePath, kind: BinaryModule.Kind)
static func local(packageRef: PackageReference, targetName: String, path: AbsolutePath, kind: BinaryModule.Kind, checksum: String? = nil) -> ManagedArtifact
Create an artifact present locally on the filesystem.
static func remote(packageRef: PackageReference, targetName: String, url: String, checksum: String, path: AbsolutePath, kind: BinaryModule.Kind) -> ManagedArtifact
Create an artifact downloaded from a remote url.
var description: String { get }
let kind: BinaryModule.Kind
let packageRef: PackageReference
The package reference.
let source: Source
The source of the artifact (local or remote).
let targetName: String
The name of the binary target the artifact corresponds to.
enum Source
Represents the source of the artifact.