Skip to content

Commit 63047d9

Browse files
authored
Expose PackageDependency creation methods (#9484)
The versions without the `traits` parameter were public for clients to use, but the version with the `traits` parameter were marked as `package`. Expose them as `public` just like the versions without traits.
1 parent 1f8d809 commit 63047d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/PackageModel/Manifest/PackageDependencyDescription.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public enum PackageDependency: Equatable, Hashable, Sendable {
249249
)
250250
}
251251

252-
package static func fileSystem(
252+
public static func fileSystem(
253253
identity: PackageIdentity,
254254
nameForTargetDependencyResolutionOnly: String?,
255255
path: AbsolutePath,
@@ -284,7 +284,7 @@ public enum PackageDependency: Equatable, Hashable, Sendable {
284284
)
285285
}
286286

287-
package static func localSourceControl(
287+
public static func localSourceControl(
288288
identity: PackageIdentity,
289289
nameForTargetDependencyResolutionOnly: String?,
290290
path: AbsolutePath,
@@ -319,7 +319,7 @@ public enum PackageDependency: Equatable, Hashable, Sendable {
319319
)
320320
}
321321

322-
package static func remoteSourceControl(
322+
public static func remoteSourceControl(
323323
identity: PackageIdentity,
324324
nameForTargetDependencyResolutionOnly: String?,
325325
url: SourceControlURL,
@@ -354,7 +354,7 @@ public enum PackageDependency: Equatable, Hashable, Sendable {
354354
)
355355
}
356356

357-
package static func sourceControl(
357+
public static func sourceControl(
358358
identity: PackageIdentity,
359359
nameForTargetDependencyResolutionOnly: String?,
360360
location: SourceControl.Location,
@@ -387,7 +387,7 @@ public enum PackageDependency: Equatable, Hashable, Sendable {
387387
)
388388
}
389389

390-
package static func registry(
390+
public static func registry(
391391
identity: PackageIdentity,
392392
requirement: Registry.Requirement,
393393
productFilter: ProductFilter,

0 commit comments

Comments
 (0)