File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -427,15 +427,16 @@ extension WorkspaceStateStorage {
427
427
428
428
enum Kind : Codable {
429
429
case xcframework
430
- case artifactsArchive( [ String ] )
430
+ case artifactsArchive
431
+ case typedArtifactsArchive( [ String ] )
431
432
case unknown
432
433
433
434
init ( _ underlying: BinaryModule . Kind ) {
434
435
switch underlying {
435
436
case . xcframework:
436
437
self = . xcframework
437
438
case . artifactsArchive( let types) :
438
- self = . artifactsArchive ( types. map { $0. rawValue } )
439
+ self = . typedArtifactsArchive ( types. map { $0. rawValue } )
439
440
case . unknown:
440
441
self = . unknown
441
442
}
@@ -445,7 +446,11 @@ extension WorkspaceStateStorage {
445
446
switch self {
446
447
case . xcframework:
447
448
return . xcframework
448
- case . artifactsArchive( let types) :
449
+ case . artifactsArchive:
450
+ // For backwards compatiblity reasons we assume an empty types array which in the worst case
451
+ // results in a need for a clean build but we won't fail decoding the JSON.
452
+ return . artifactsArchive( types: [ ] )
453
+ case . typedArtifactsArchive( let types) :
449
454
return . artifactsArchive( types: types. compactMap { ArtifactsArchiveMetadata . ArtifactType ( rawValue: $0) } )
450
455
case . unknown:
451
456
return . unknown
Original file line number Diff line number Diff line change @@ -23,10 +23,7 @@ struct StaticBinaryLibraryTests {
23
23
let ( stdout, stderr) = try await executeSwiftRun (
24
24
fixturePath. appending ( " Static " ) . appending ( " Package1 " ) ,
25
25
" Example " ,
26
- extraArgs: [ " --experimental-prune-unused-dependencies " ]
27
26
)
28
- // We expect no warnings to be produced. Specifically no unused dependency warnings.
29
- #expect( !stderr. contains ( " warning: " ) )
30
27
#expect( stdout == """
31
28
42
32
29
42
You can’t perform that action at this time.
0 commit comments