Skip to content

Commit db9a253

Browse files
authored
Fix path-related deprecation warnings (#5833)
Looks like I missed a few here.
1 parent d52267a commit db9a253

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

Tests/BuildTests/BuildPlanTests.swift

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ final class BuildPlanTests: XCTestCase {
4444
manifests: [
4545
Manifest.createFileSystemManifest(
4646
name: "fooPkg",
47-
path: .init("/fooPkg"),
47+
path: .init(path: "/fooPkg"),
4848
products: [
4949
ProductDescription(name: "Logging", type: .library(.dynamic), targets: ["FooLogging"]),
5050
],
@@ -53,7 +53,7 @@ final class BuildPlanTests: XCTestCase {
5353
]),
5454
Manifest.createFileSystemManifest(
5555
name: "barPkg",
56-
path: .init("/barPkg"),
56+
path: .init(path: "/barPkg"),
5757
products: [
5858
ProductDescription(name: "Logging", type: .library(.static), targets: ["BarLogging"]),
5959
],
@@ -62,11 +62,11 @@ final class BuildPlanTests: XCTestCase {
6262
]),
6363
Manifest.createRootManifest(
6464
name: "thisPkg",
65-
path: .init("/thisPkg"),
65+
path: .init(path: "/thisPkg"),
6666
toolsVersion: .vNext,
6767
dependencies: [
68-
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
69-
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
68+
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
69+
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
7070
],
7171
targets: [
7272
TargetDescription(name: "exe",
@@ -103,7 +103,7 @@ final class BuildPlanTests: XCTestCase {
103103
manifests: [
104104
Manifest.createFileSystemManifest(
105105
name: "fooPkg",
106-
path: .init("/fooPkg"),
106+
path: .init(path: "/fooPkg"),
107107
products: [
108108
ProductDescription(name: "Logging", type: .library(.dynamic), targets: ["FooLogging"]),
109109
],
@@ -112,7 +112,7 @@ final class BuildPlanTests: XCTestCase {
112112
]),
113113
Manifest.createFileSystemManifest(
114114
name: "barPkg",
115-
path: .init("/barPkg"),
115+
path: .init(path: "/barPkg"),
116116
products: [
117117
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BarLogging"]),
118118
],
@@ -121,11 +121,11 @@ final class BuildPlanTests: XCTestCase {
121121
]),
122122
Manifest.createRootManifest(
123123
name: "thisPkg",
124-
path: .init("/thisPkg"),
124+
path: .init(path: "/thisPkg"),
125125
toolsVersion: .vNext,
126126
dependencies: [
127-
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
128-
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
127+
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
128+
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
129129
],
130130
targets: [
131131
TargetDescription(name: "exe",
@@ -169,7 +169,7 @@ final class BuildPlanTests: XCTestCase {
169169
manifests: [
170170
Manifest.createFileSystemManifest(
171171
name: "bazPkg",
172-
path: .init("/bazPkg"),
172+
path: .init(path: "/bazPkg"),
173173
products: [
174174
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BazLogging"]),
175175
],
@@ -178,7 +178,7 @@ final class BuildPlanTests: XCTestCase {
178178
]),
179179
Manifest.createFileSystemManifest(
180180
name: "barPkg",
181-
path: .init("/barPkg"),
181+
path: .init(path: "/barPkg"),
182182
products: [
183183
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BarLogging"]),
184184
],
@@ -187,11 +187,11 @@ final class BuildPlanTests: XCTestCase {
187187
]),
188188
Manifest.createFileSystemManifest(
189189
name: "fooPkg",
190-
path: .init("/fooPkg"),
190+
path: .init(path: "/fooPkg"),
191191
toolsVersion: .vNext,
192192
dependencies: [
193-
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "1.0.0")),
194-
.localSourceControl(path: .init("/bazPkg"), requirement: .upToNextMajor(from: "1.0.0")),
193+
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "1.0.0")),
194+
.localSourceControl(path: .init(path: "/bazPkg"), requirement: .upToNextMajor(from: "1.0.0")),
195195
],
196196
products: [
197197
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["FooLogging"]),
@@ -208,7 +208,7 @@ final class BuildPlanTests: XCTestCase {
208208
]),
209209
Manifest.createFileSystemManifest(
210210
name: "xPkg",
211-
path: .init("/xPkg"),
211+
path: .init(path: "/xPkg"),
212212
products: [
213213
ProductDescription(name: "Utils", type: .library(.automatic), targets: ["XUtils"]),
214214
],
@@ -217,7 +217,7 @@ final class BuildPlanTests: XCTestCase {
217217
]),
218218
Manifest.createFileSystemManifest(
219219
name: "yPkg",
220-
path: .init("/yPkg"),
220+
path: .init(path: "/yPkg"),
221221
products: [
222222
ProductDescription(name: "Utils", type: .library(.automatic), targets: ["YUtils"]),
223223
],
@@ -226,12 +226,12 @@ final class BuildPlanTests: XCTestCase {
226226
]),
227227
Manifest.createRootManifest(
228228
name: "thisPkg",
229-
path: .init("/thisPkg"),
229+
path: .init(path: "/thisPkg"),
230230
toolsVersion: .vNext,
231231
dependencies: [
232-
.localSourceControl(path: .init("/xPkg"), requirement: .upToNextMajor(from: "1.0.0")),
233-
.localSourceControl(path: .init("/yPkg"), requirement: .upToNextMajor(from: "1.0.0")),
234-
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
232+
.localSourceControl(path: .init(path: "/xPkg"), requirement: .upToNextMajor(from: "1.0.0")),
233+
.localSourceControl(path: .init(path: "/yPkg"), requirement: .upToNextMajor(from: "1.0.0")),
234+
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
235235
],
236236
targets: [
237237
TargetDescription(name: "exe",
@@ -279,7 +279,7 @@ final class BuildPlanTests: XCTestCase {
279279
manifests: [
280280
Manifest.createFileSystemManifest(
281281
name: "bazPkg",
282-
path: .init("/bazPkg"),
282+
path: .init(path: "/bazPkg"),
283283
products: [
284284
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BazLogging"]),
285285
],
@@ -288,7 +288,7 @@ final class BuildPlanTests: XCTestCase {
288288
]),
289289
Manifest.createFileSystemManifest(
290290
name: "barPkg",
291-
path: .init("/barPkg"),
291+
path: .init(path: "/barPkg"),
292292
products: [
293293
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BarLogging"]),
294294
],
@@ -297,11 +297,11 @@ final class BuildPlanTests: XCTestCase {
297297
]),
298298
Manifest.createFileSystemManifest(
299299
name: "fooPkg",
300-
path: .init("/fooPkg"),
300+
path: .init(path: "/fooPkg"),
301301
toolsVersion: .vNext,
302302
dependencies: [
303-
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "1.0.0")),
304-
.localSourceControl(path: .init("/bazPkg"), requirement: .upToNextMajor(from: "1.0.0")),
303+
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "1.0.0")),
304+
.localSourceControl(path: .init(path: "/bazPkg"), requirement: .upToNextMajor(from: "1.0.0")),
305305
],
306306
products: [
307307
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["Logging"]),
@@ -318,9 +318,9 @@ final class BuildPlanTests: XCTestCase {
318318
]),
319319
Manifest.createRootManifest(
320320
name: "thisPkg",
321-
path: .init("/thisPkg"),
321+
path: .init(path: "/thisPkg"),
322322
dependencies: [
323-
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
323+
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
324324
],
325325
targets: [
326326
TargetDescription(name: "exe",
@@ -359,10 +359,10 @@ final class BuildPlanTests: XCTestCase {
359359
manifests: [
360360
Manifest.createFileSystemManifest(
361361
name: "fooPkg",
362-
path: .init("/fooPkg"),
362+
path: .init(path: "/fooPkg"),
363363
toolsVersion: .vNext,
364364
dependencies: [
365-
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "1.0.0")),
365+
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "1.0.0")),
366366
],
367367
products: [
368368
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["FooLogging"]),
@@ -376,7 +376,7 @@ final class BuildPlanTests: XCTestCase {
376376
]),
377377
Manifest.createFileSystemManifest(
378378
name: "barPkg",
379-
path: .init("/barPkg"),
379+
path: .init(path: "/barPkg"),
380380
products: [
381381
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BarLogging"]),
382382
],
@@ -385,9 +385,9 @@ final class BuildPlanTests: XCTestCase {
385385
]),
386386
Manifest.createRootManifest(
387387
name: "thisPkg",
388-
path: .init("/thisPkg"),
388+
path: .init(path: "/thisPkg"),
389389
dependencies: [
390-
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
390+
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
391391
],
392392
targets: [
393393
TargetDescription(name: "exe",
@@ -425,7 +425,7 @@ final class BuildPlanTests: XCTestCase {
425425
manifests: [
426426
Manifest.createFileSystemManifest(
427427
name: "fooPkg",
428-
path: .init("/fooPkg"),
428+
path: .init(path: "/fooPkg"),
429429
toolsVersion: .vNext,
430430
products: [
431431
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["FooLogging"]),
@@ -435,7 +435,7 @@ final class BuildPlanTests: XCTestCase {
435435
]),
436436
Manifest.createFileSystemManifest(
437437
name: "barPkg",
438-
path: .init("/barPkg"),
438+
path: .init(path: "/barPkg"),
439439
products: [
440440
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BarLogging"]),
441441
],
@@ -444,10 +444,10 @@ final class BuildPlanTests: XCTestCase {
444444
]),
445445
Manifest.createRootManifest(
446446
name: "thisPkg",
447-
path: .init("/thisPkg"),
447+
path: .init(path: "/thisPkg"),
448448
dependencies: [
449-
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
450-
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
449+
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
450+
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
451451
],
452452
targets: [
453453
TargetDescription(name: "exe",
@@ -484,7 +484,7 @@ final class BuildPlanTests: XCTestCase {
484484
manifests: [
485485
Manifest.createFileSystemManifest(
486486
name: "fooPkg",
487-
path: .init("/fooPkg"),
487+
path: .init(path: "/fooPkg"),
488488
products: [
489489
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["FooLogging"]),
490490
],
@@ -493,7 +493,7 @@ final class BuildPlanTests: XCTestCase {
493493
]),
494494
Manifest.createFileSystemManifest(
495495
name: "barPkg",
496-
path: .init("/barPkg"),
496+
path: .init(path: "/barPkg"),
497497
products: [
498498
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BarLogging"]),
499499
],
@@ -502,11 +502,11 @@ final class BuildPlanTests: XCTestCase {
502502
]),
503503
Manifest.createRootManifest(
504504
name: "thisPkg",
505-
path: .init("/thisPkg"),
505+
path: .init(path: "/thisPkg"),
506506
toolsVersion: .vNext,
507507
dependencies: [
508-
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
509-
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
508+
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
509+
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
510510
],
511511
targets: [
512512
TargetDescription(name: "exe",

0 commit comments

Comments
 (0)