Skip to content

Commit a3a67f9

Browse files
committed
Remove ProductDescription helper initializer overload
1 parent 0bf1885 commit a3a67f9

File tree

7 files changed

+50
-56
lines changed

7 files changed

+50
-56
lines changed

Sources/SPMTestSupport/Manifest.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ extension Manifest {
8787
}
8888
}
8989

90-
extension ProductDescription {
91-
public init(name: String, targets: [String]) {
92-
self.init(name: name, type: .library(.automatic), targets: targets)
93-
}
94-
}
95-
9690
extension Manifest {
9791
public func with(url: String) -> Manifest {
9892
return Manifest(

Tests/BuildTests/BuildPlanTests.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ final class BuildPlanTests: XCTestCase {
298298
url: "/ExtPkg",
299299
packageKind: .remote,
300300
products: [
301-
ProductDescription(name: "ExtLib", targets: ["ExtLib"]),
301+
ProductDescription(name: "ExtLib", type: .library(.automatic), targets: ["ExtLib"]),
302302
],
303303
targets: [
304304
TargetDescription(name: "ExtLib", dependencies: []),
@@ -393,7 +393,7 @@ final class BuildPlanTests: XCTestCase {
393393
url: "/B",
394394
packageKind: .local,
395395
products: [
396-
ProductDescription(name: "BLibrary", targets: ["BTarget"]),
396+
ProductDescription(name: "BLibrary", type: .library(.automatic), targets: ["BTarget"]),
397397
],
398398
targets: [
399399
TargetDescription(name: "BTarget", dependencies: []),
@@ -500,7 +500,7 @@ final class BuildPlanTests: XCTestCase {
500500
url: "/ExtPkg",
501501
packageKind: .local,
502502
products: [
503-
ProductDescription(name: "ExtPkg", targets: ["extlib"]),
503+
ProductDescription(name: "ExtPkg", type: .library(.automatic), targets: ["extlib"]),
504504
],
505505
targets: [
506506
TargetDescription(name: "extlib", dependencies: []),
@@ -622,7 +622,7 @@ final class BuildPlanTests: XCTestCase {
622622
url: "/ExtPkg",
623623
packageKind: .remote,
624624
products: [
625-
ProductDescription(name: "ExtPkg", targets: ["ExtLib"]),
625+
ProductDescription(name: "ExtPkg", type: .library(.automatic), targets: ["ExtLib"]),
626626
],
627627
targets: [
628628
TargetDescription(name: "ExtLib", dependencies: []),
@@ -870,7 +870,7 @@ final class BuildPlanTests: XCTestCase {
870870
url: "/Dep",
871871
packageKind: .local,
872872
products: [
873-
ProductDescription(name: "Dep", targets: ["Dep"]),
873+
ProductDescription(name: "Dep", type: .library(.automatic), targets: ["Dep"]),
874874
],
875875
targets: [
876876
TargetDescription(name: "Dep", dependencies: ["CDep"]),
@@ -1798,7 +1798,7 @@ final class BuildPlanTests: XCTestCase {
17981798
v: .v5,
17991799
packageKind: .local,
18001800
products: [
1801-
ProductDescription(name: "BLibrary", targets: ["BTarget"]),
1801+
ProductDescription(name: "BLibrary", type: .library(.automatic), targets: ["BTarget"]),
18021802
],
18031803
targets: [
18041804
TargetDescription(name: "BTarget", dependencies: []),
@@ -1862,7 +1862,7 @@ final class BuildPlanTests: XCTestCase {
18621862
v: .v5,
18631863
packageKind: .local,
18641864
products: [
1865-
ProductDescription(name: "BLibrary", targets: ["BTarget"]),
1865+
ProductDescription(name: "BLibrary", type: .library(.automatic), targets: ["BTarget"]),
18661866
],
18671867
targets: [
18681868
TargetDescription(name: "BTarget", dependencies: []),
@@ -1953,7 +1953,7 @@ final class BuildPlanTests: XCTestCase {
19531953
v: .v5,
19541954
packageKind: .local,
19551955
products: [
1956-
ProductDescription(name: "Dep", targets: ["t1", "t2"]),
1956+
ProductDescription(name: "Dep", type: .library(.automatic), targets: ["t1", "t2"]),
19571957
],
19581958
targets: [
19591959
TargetDescription(
@@ -2073,7 +2073,7 @@ final class BuildPlanTests: XCTestCase {
20732073
url: "/PkgA",
20742074
packageKind: .local,
20752075
products: [
2076-
ProductDescription(name: "swiftlib", targets: ["swiftlib"]),
2076+
ProductDescription(name: "swiftlib", type: .library(.automatic), targets: ["swiftlib"]),
20772077
ProductDescription(name: "exe", type: .executable, targets: ["exe"])
20782078
],
20792079
targets: [
@@ -2192,7 +2192,7 @@ final class BuildPlanTests: XCTestCase {
21922192
url: "/PkgB",
21932193
packageKind: .local,
21942194
products: [
2195-
ProductDescription(name: "Foo", targets: ["Foo"]),
2195+
ProductDescription(name: "Foo", type: .library(.automatic), targets: ["Foo"]),
21962196
],
21972197
targets: [
21982198
TargetDescription(name: "Foo", dependencies: []),

Tests/PackageGraphPerformanceTests/PackageGraphPerfTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class PackageGraphPerfTests: XCTestCasePerf {
5353
packageKind: isRoot ? .root : .remote,
5454
dependencies: dependencies,
5555
products: [
56-
ProductDescription(name: name, targets: [name])
56+
ProductDescription(name: name, type: .library(.automatic), targets: [name])
5757
],
5858
targets: targets
5959
)

0 commit comments

Comments
 (0)