You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"multiple targets named '\(name)' in: \(packages)"
70
-
case.modulesNotFound(let targets):
71
-
lettargets= targets.joined(separator:", ")
72
-
return"could not find source files for target(s): \(targets); use the 'path' property in the Swift 4 manifest to set a custom target path"
70
+
case.moduleNotFound(let target):
71
+
return"Source files for target \(target) should be located under 'Sources/\(target)', or a custom sources path can be set with the 'path' property in Package.swift"
Copy file name to clipboardExpand all lines: Tests/PackageLoadingTests/PackageBuilderTests.swift
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -734,7 +734,7 @@ class PackageBuilderTests: XCTestCase {
734
734
]
735
735
)
736
736
PackageBuilderTester(manifest, in: fs){ result in
737
-
result.checkDiagnostic("could not find source files for target(s): Random; use the 'path' property in the Swift 4 manifest to set a custom target path")
737
+
result.checkDiagnostic("Source files for target Random should be located under 'Sources/Random', or a custom sources path can be set with the 'path' property in Package.swift")
738
738
}
739
739
}
740
740
@@ -749,7 +749,7 @@ class PackageBuilderTests: XCTestCase {
749
749
]
750
750
)
751
751
PackageBuilderTester(manifest, in: fs){ result in
752
-
result.checkDiagnostic("could not find source files for target(s): Foo; use the 'path' property in the Swift 4 manifest to set a custom target path")
752
+
result.checkDiagnostic("Source files for target Foo should be located under 'Sources/Foo', or a custom sources path can be set with the 'path' property in Package.swift")
753
753
}
754
754
}
755
755
@@ -779,7 +779,7 @@ class PackageBuilderTests: XCTestCase {
779
779
]
780
780
)
781
781
PackageBuilderTester(manifest, in: fs){ result in
782
-
result.checkDiagnostic("could not find source files for target(s): foo; use the 'path' property in the Swift 4 manifest to set a custom target path")
782
+
result.checkDiagnostic("Source files for target foo should be located under 'Sources/foo', or a custom sources path can be set with the 'path' property in Package.swift")
783
783
}
784
784
}
785
785
@@ -829,7 +829,7 @@ class PackageBuilderTests: XCTestCase {
829
829
]
830
830
)
831
831
PackageBuilderTester(manifest, in: fs){ result in
832
-
result.checkDiagnostic("target 'pkg2' in package 'pkg' contains no valid source files")
832
+
result.checkDiagnostic("Source files for target pkg2 should be located under /Sources/pkg2")
@@ -1058,7 +1058,7 @@ class PackageBuilderTests: XCTestCase {
1058
1058
)
1059
1059
1060
1060
PackageBuilderTester(manifest, in: fs){ result in
1061
-
result.checkDiagnostic("could not find source files for target(s): Bar; use the 'path' property in the Swift 4 manifest to set a custom target path")
1061
+
result.checkDiagnostic("Source files for target Bar should be located under 'Sources/Bar', or a custom sources path can be set with the 'path' property in Package.swift")
1062
1062
}
1063
1063
}
1064
1064
@@ -1077,7 +1077,7 @@ class PackageBuilderTests: XCTestCase {
1077
1077
]
1078
1078
)
1079
1079
PackageBuilderTester(manifest, in: fs){ result in
1080
-
result.checkDiagnostic("could not find source files for target(s): BarTests; use the 'path' property in the Swift 4 manifest to set a custom target path")
1080
+
result.checkDiagnostic("Source files for target BarTests should be located under 'Sources/BarTests', or a custom sources path can be set with the 'path' property in Package.swift")
1081
1081
}
1082
1082
1083
1083
// We should be able to fix this by using custom paths.
0 commit comments