Structureswift-package-manager 6.0.1Workspace
Mirrors
Workspace+Configuration.swift:418struct Mirrors
struct Mirrors
import Workspace
final class Configuration
Manages a package workspace’s configuration.
class Workspace
A workspace represents the state of a working project directory.
struct Authorization
struct MirrorsStorage
class Registries
init(fileSystem: FileSystem, localMirrorsFile: AbsolutePath, sharedMirrorsFile: AbsolutePath?) throws
Initialize the workspace mirrors configuration
init(forRootPackage rootPath: AbsolutePath, sharedMirrorFile: AbsolutePath?, fileSystem: FileSystem) throws
A convenience initializer for creating a workspace mirrors configuration for the given root package path.
var mirrors: DependencyMirrors { get }
The mirrors in this configuration
@discardableResult func applyLocal(handler: (inout DependencyMirrors) throws -> Void) throws -> DependencyMirrors
@discardableResult func applyShared(handler: (inout DependencyMirrors) throws -> Void) throws -> DependencyMirrors