Skip to content

Commit 6b5150c

Browse files
authored
Make access modifiers public for users of the package. (#8086)
Change a few access modifiers to public. ### Motivation: As a user of the package, I am trying to access these properties.
1 parent 8021081 commit 6b5150c

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

Sources/PackageGraph/Resolution/ResolvedPackage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public struct ResolvedPackage {
4040
public let products: [ResolvedProduct]
4141

4242
/// The enabled traits of this package.
43-
package let enabledTraits: Set<String>
43+
public let enabledTraits: Set<String>
4444

4545
/// The dependencies of the package.
4646
public let dependencies: [PackageIdentity]

Sources/SPMBuildCore/Plugins/PluginInvocation.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ public enum PluginAction {
3434
}
3535

3636
public struct PluginTool {
37-
let path: AbsolutePath
38-
let triples: [String]?
37+
public let path: AbsolutePath
38+
public let triples: [String]?
3939

40-
init(path: AbsolutePath, triples: [String]? = nil) {
40+
public init(path: AbsolutePath, triples: [String]? = nil) {
4141
self.path = path
4242
self.triples = triples
4343
}

Sources/Workspace/Workspace.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,22 @@ extension Workspace {
12371237
completion(result)
12381238
}
12391239
}
1240+
1241+
public func changeSigningEntityFromVersion(
1242+
package: PackageIdentity,
1243+
version: Version,
1244+
signingEntity: SigningEntity,
1245+
origin: SigningEntity.Origin,
1246+
observabilityScope: ObservabilityScope
1247+
) throws {
1248+
try self.registryClient.changeSigningEntityFromVersion(
1249+
package: package,
1250+
version: version,
1251+
signingEntity: signingEntity,
1252+
origin: origin,
1253+
observabilityScope: observabilityScope
1254+
)
1255+
}
12401256
}
12411257

12421258
extension Workspace {

0 commit comments

Comments
 (0)