Skip to content

Commit 9c061c8

Browse files
committed
Rename CompoundPackageContainerProvider to CompositePackageContainerProvider
1 parent fe744a4 commit 9c061c8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Sources/PackageGraph/CompoundPackageContainerProvider.swift renamed to Sources/PackageGraph/CompositePackageContainerProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import SourceControl
1818
import TSCBasic
1919
import TSCUtility
2020

21-
public class CompoundPackageContainerProvider: PackageContainerProvider {
21+
public class CompositePackageContainerProvider: PackageContainerProvider {
2222
let manifestLoader: ManifestLoaderProtocol
2323
let repositoryManager: RepositoryManager
2424
let mirrors: DependencyMirrors

Sources/Workspace/Workspace.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public class Workspace {
299299
self.artifactsPath = self.dataPath.appending(component: "artifacts")
300300

301301
if enablePackageRegistry {
302-
self.containerProvider = CompoundPackageContainerProvider(
302+
self.containerProvider = CompositePackageContainerProvider(
303303
repositoryManager: repositoryManager,
304304
mirrors: self.config.mirrors,
305305
manifestLoader: manifestLoader,
@@ -858,7 +858,7 @@ extension Workspace {
858858
// FIXME: We should probably just warn in case we fail to create
859859
// this symlink, which could happen if there is some non-symlink
860860
// entry at this location.
861-
try fileSystem.createSymbolicLink(symLinkPath, pointingAt: path, relative: false)
861+
try self.fileSystem.createSymbolicLink(symLinkPath, pointingAt: path, relative: false)
862862
}
863863
}
864864

@@ -1179,7 +1179,7 @@ public extension Workspace {
11791179
return path
11801180
case .remote:
11811181
let pathComponents = dependency.packageRef.identity.description.split(separator: "/", omittingEmptySubsequences: true)
1182-
return pathComponents.reduce(checkoutsPath) { (path, component) in
1182+
return pathComponents.reduce(self.checkoutsPath) { path, component in
11831183
path.appending(component: String(component))
11841184
}
11851185
}
@@ -2053,7 +2053,7 @@ extension Workspace {
20532053
// If current state and new state are equal, we don't need
20542054
// to do anything.
20552055
let newState = CheckoutState(revision: revision, branch: branch)
2056-
if case .checkout(let checkoutState) = currentDependency.state, checkoutState == newState {
2056+
if case .checkout(let checkoutState) = currentDependency.state, self.checkoutState == newState {
20572057
packageStateChanges[packageRef.identity.description] = (packageRef, .unchanged)
20582058
} else {
20592059
// Otherwise, we need to update this dependency to this revision.
@@ -2067,7 +2067,7 @@ extension Workspace {
20672067

20682068
case .version(let version):
20692069
if let currentDependency = currentDependency {
2070-
if case .checkout(let checkoutState) = currentDependency.state, checkoutState.version == version {
2070+
if case .checkout(let checkoutState) = currentDependency.state, self.checkoutState.version == version {
20712071
packageStateChanges[packageRef.identity.description] = (packageRef, .unchanged)
20722072
} else {
20732073
let newState = PackageStateChange.State(requirement: .version(version), products: products)
@@ -2341,7 +2341,7 @@ extension Workspace {
23412341
let dependency = ManagedDependency.local(packageRef: package)
23422342
self.state.dependencies.add(dependency)
23432343
try self.state.saveState()
2344-
return path(for: dependency)
2344+
return self.path(for: dependency)
23452345
}
23462346

23472347
return try self.clone(package: package, at: checkoutState)
@@ -2359,7 +2359,7 @@ extension Workspace {
23592359
// Note that we don't actually remove a local package from disk.
23602360
switch dependency.state {
23612361
case _ where dependency.packageRef.kind == .local:
2362-
fallthrough // FIXME
2362+
fallthrough // FIXME:
23632363
case .local:
23642364
self.state.dependencies.remove(forURL: package.identity.description)
23652365
try self.state.saveState()

0 commit comments

Comments
 (0)