@@ -53,7 +53,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
53
53
workspacePath: packageRoot,
54
54
toolchainRegistry: tr,
55
55
fileSystem: fs,
56
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
56
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
57
+ forceResolvedVersions: true
57
58
)
58
59
)
59
60
}
@@ -80,7 +81,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
80
81
workspacePath: packageRoot,
81
82
toolchainRegistry: tr,
82
83
fileSystem: fs,
83
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
84
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
85
+ forceResolvedVersions: true
84
86
)
85
87
)
86
88
}
@@ -107,7 +109,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
107
109
workspacePath: packageRoot,
108
110
toolchainRegistry: ToolchainRegistry ( toolchains: [ ] ) ,
109
111
fileSystem: fs,
110
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
112
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
113
+ forceResolvedVersions: true
111
114
)
112
115
)
113
116
}
@@ -134,7 +137,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
134
137
workspacePath: packageRoot,
135
138
toolchainRegistry: tr,
136
139
fileSystem: fs,
137
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
140
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
141
+ forceResolvedVersions: true
138
142
)
139
143
140
144
let aswift = packageRoot. appending ( components: " Sources " , " lib " , " a.swift " )
@@ -202,7 +206,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
202
206
workspacePath: packageRoot,
203
207
toolchainRegistry: tr,
204
208
fileSystem: fs,
205
- buildSetup: config
209
+ buildSetup: config,
210
+ forceResolvedVersions: true
206
211
)
207
212
208
213
let aswift = packageRoot. appending ( components: " Sources " , " lib " , " a.swift " )
@@ -239,7 +244,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
239
244
workspacePath: packageRoot,
240
245
toolchainRegistry: tr,
241
246
fileSystem: fs,
242
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
247
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
248
+ forceResolvedVersions: true
243
249
)
244
250
245
251
let source = try resolveSymlinks ( packageRoot. appending ( component: " Package.swift " ) )
@@ -272,7 +278,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
272
278
workspacePath: packageRoot,
273
279
toolchainRegistry: tr,
274
280
fileSystem: fs,
275
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
281
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
282
+ forceResolvedVersions: true
276
283
)
277
284
278
285
let aswift = packageRoot. appending ( components: " Sources " , " lib " , " a.swift " )
@@ -317,7 +324,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
317
324
workspacePath: packageRoot,
318
325
toolchainRegistry: tr,
319
326
fileSystem: fs,
320
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
327
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
328
+ forceResolvedVersions: true
321
329
)
322
330
323
331
let aswift = packageRoot. appending ( components: " Sources " , " libA " , " a.swift " )
@@ -379,7 +387,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
379
387
workspacePath: packageRoot,
380
388
toolchainRegistry: tr,
381
389
fileSystem: fs,
382
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
390
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
391
+ forceResolvedVersions: true
383
392
)
384
393
385
394
let aswift = packageRoot. appending ( components: " Sources " , " libA " , " a.swift " )
@@ -419,7 +428,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
419
428
workspacePath: packageRoot,
420
429
toolchainRegistry: tr,
421
430
fileSystem: fs,
422
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
431
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
432
+ forceResolvedVersions: true
423
433
)
424
434
425
435
let acxx = packageRoot. appending ( components: " Sources " , " lib " , " a.cpp " )
@@ -498,7 +508,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
498
508
workspacePath: packageRoot,
499
509
toolchainRegistry: ToolchainRegistry . forTesting,
500
510
fileSystem: fs,
501
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
511
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
512
+ forceResolvedVersions: true
502
513
)
503
514
504
515
let aswift = packageRoot. appending ( components: " Sources " , " lib " , " a.swift " )
@@ -545,7 +556,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
545
556
workspacePath: packageRoot,
546
557
toolchainRegistry: tr,
547
558
fileSystem: fs,
548
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
559
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
560
+ forceResolvedVersions: true
549
561
)
550
562
551
563
let aswift1 = packageRoot. appending ( components: " Sources " , " lib " , " a.swift " )
@@ -609,7 +621,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
609
621
workspacePath: symlinkRoot,
610
622
toolchainRegistry: ToolchainRegistry . forTesting,
611
623
fileSystem: fs,
612
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
624
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
625
+ forceResolvedVersions: true
613
626
)
614
627
615
628
for file in [ acpp, ah] {
@@ -649,7 +662,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
649
662
workspacePath: packageRoot,
650
663
toolchainRegistry: tr,
651
664
fileSystem: fs,
652
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
665
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
666
+ forceResolvedVersions: true
653
667
)
654
668
655
669
let aswift = packageRoot. appending ( components: " Sources " , " lib " , " a.swift " )
@@ -685,7 +699,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
685
699
workspacePath: packageRoot,
686
700
toolchainRegistry: tr,
687
701
fileSystem: fs,
688
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
702
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
703
+ forceResolvedVersions: true
689
704
)
690
705
691
706
assertEqual ( await swiftpmBuildSystem. projectRoot, try resolveSymlinks ( tempDir. appending ( component: " pkg " ) ) )
@@ -721,7 +736,8 @@ final class SwiftPMBuildSystemTests: XCTestCase {
721
736
workspacePath: packageRoot,
722
737
toolchainRegistry: tr,
723
738
fileSystem: fs,
724
- buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup
739
+ buildSetup: SourceKitLSPServer . Options. testDefault. buildSetup,
740
+ forceResolvedVersions: true
725
741
)
726
742
727
743
let aswift = packageRoot. appending ( components: " Plugins " , " MyPlugin " , " a.swift " )
0 commit comments