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 identical targets '\(targets)' appear in package '\(package)' and '\(otherPackage)', this may indicate that the two packages are the same and can be de-duplicated by using mirrors. if they are not duplicate consider using the `moduleAliases` parameter in manifest to provide unique names"
return"multiple identical targets '\(targets)' appear in registry package '\(regsitryPackage)' and source control package '\(scmPackage)', this may indicate that the two packages are the same and can be de-duplicated by activating the automatic source-control to registry replacement, or by using mirrors. if they are not duplicate consider using the `moduleAliases` parameter in manifest to provide unique names"
targetsDescription +=" and \(targets.count -3) others"
147
+
}
148
+
return"multiple similar targets \(targetsDescription) appear in package '\(package)' and '\(otherPackage)', this may indicate that the two packages are the same and can be de-duplicated by using mirrors. if they are not duplicate consider using the `moduleAliases` parameter in manifest to provide unique names"
targetsDescription +=" and \(targets.count -3) others"
153
+
}
154
+
return"multiple similar targets \(targetsDescription) appear in registry package '\(registryPackage)' and source control package '\(scmPackage)', this may indicate that the two packages are the same and can be de-duplicated by activating the automatic source-control to registry replacement, or by using mirrors. if they are not duplicate consider using the `moduleAliases` parameter in manifest to provide unique names"
testDiagnostics(observability.diagnostics){ result in
412
-
result.check(diagnostic:"multiple targets named 'Bar' in: 'fourth', 'third'; consider using the `moduleAliases` parameter in manifest to provide unique names", severity:.error)
413
-
result.check(diagnostic:"multiple targets named 'Foo' in: 'first', 'second'; consider using the `moduleAliases` parameter in manifest to provide unique names", severity:.error)
427
+
result.checkUnordered(diagnostic:"multiple targets named 'Bar' in: 'fourth', 'third'; consider using the `moduleAliases` parameter in manifest to provide unique names", severity:.error)
428
+
result.checkUnordered(diagnostic:"multiple targets named 'Foo' in: 'first', 'second'; consider using the `moduleAliases` parameter in manifest to provide unique names", severity:.error)
414
429
}
415
430
}
416
431
417
432
func testNestedDuplicateModules()throws{
418
433
letfs=InMemoryFileSystem(emptyFiles:
419
434
"/Fourth/Sources/First/source.swift",
435
+
"/Fourth/Sources/Fourth/source.swift",
420
436
"/Third/Sources/Third/source.swift",
421
437
"/Second/Sources/Second/source.swift",
422
438
"/First/Sources/First/source.swift"
@@ -430,9 +446,10 @@ class PackageGraphTests: XCTestCase {
testDiagnostics(observability.diagnostics){ result in
596
+
result.check(diagnostic:.contains("multiple similar targets 'Bar', 'Baz', 'Foo' and 2 others appear in package 'first' and 'second'"), severity:.error)
testDiagnostics(observability.diagnostics){ result in
641
+
result.check(diagnostic:.contains("multiple similar targets 'Bar', 'Foo' appear in registry package 'test.second' and source control package 'first'"), severity:.error)
0 commit comments