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 products named '\(product)' in: \(packagesDescriptions.joined(separator:", "))"
353
+
return"multiple packages (\(packagesDescriptions.joined(separator:", "))) declare products with a conflicting name: '\(product)’; product names need to be unique across the package graph"
return"multiple targets named '\(target)' in: '\(packages)'"
101
+
return"multiple packages ('\(packages)') declare targets with a conflicting name: '\(target)’; target names need to be unique across the package graph"
"multiple packages (\'barpkg\' (at '\(barPkg)'), \'foopkg\' (at '\(fooPkg)')) declare products with a conflicting name: \'Logging’; product names need to be unique across the package graph"
134
134
)
135
135
}
136
136
}
@@ -552,7 +552,7 @@ final class BuildPlanTests: XCTestCase {
"multiple packages (\'barpkg\' (at '\(barPkg)'), \'foopkg\' (at '\(fooPkg)')) declare products with a conflicting name: \'Logging’; product names need to be unique across the package graph"
XCTAssertEqual((error as?PackageGraphError)?.description,"multiple packages (\'barpkg\' (at '\(barPkg)'), \'foopkg\' (at '\(fooPkg)')) declare products with a conflicting name: \'Logging’; product names need to be unique across the package graph")
269
269
}
270
270
}
271
271
@@ -327,7 +327,7 @@ final class ModuleAliasingBuildTests: XCTestCase {
XCTAssertEqual((error as?PackageGraphError)?.description,"multiple packages (\'barpkg\' (at '\(barPkg)'), \'foopkg\' (at '\(fooPkg)')) declare products with a conflicting name: \'Logging’; product names need to be unique across the package graph")
331
331
}
332
332
}
333
333
@@ -4697,7 +4697,7 @@ final class ModuleAliasingBuildTests: XCTestCase {
4697
4697
4698
4698
XCTFail("unexpectedly resolved the package graph successfully")
XCTAssertEqual(error.interpolationDescription,"multiple packages ('other' (at '\(AbsolutePath("/Other"))'), 'some' (at '\(AbsolutePath("/Some"))')) declare products with a conflicting name: 'SomeProduct’; product names need to be unique across the package graph")
4701
4701
}
4702
4702
XCTAssertEqual(observability.diagnostics.map{ $0.description }.sorted(),["[warning]: product aliasing requires tools-version 5.2 or later, so it is not supported by \'other\'","[warning]: product aliasing requires tools-version 5.2 or later, so it is not supported by \'some\'"])
Copy file name to clipboardExpand all lines: Tests/PackageGraphTests/ModulesGraphTests.swift
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -384,7 +384,7 @@ final class ModulesGraphTests: XCTestCase {
384
384
)
385
385
386
386
testDiagnostics(observability.diagnostics){ result in
387
-
result.check(diagnostic:"multiple targets named 'Bar' in: 'bar', 'foo'", severity:.error)
387
+
result.check(diagnostic:"multiple packages ('bar', 'foo') declare targets with a conflicting name: 'Bar’; target names need to be unique across the package graph", severity:.error)
388
388
}
389
389
}
390
390
@@ -443,7 +443,7 @@ final class ModulesGraphTests: XCTestCase {
443
443
)
444
444
445
445
testDiagnostics(observability.diagnostics){ result in
446
-
result.check(diagnostic:"multiple targets named 'First' in: 'first', 'fourth', 'second', 'third'", severity:.error)
446
+
result.check(diagnostic:"multiple packages ('first', 'fourth', 'second', 'third') declare targets with a conflicting name: 'First’; target names need to be unique across the package graph", severity:.error)
447
447
}
448
448
}
449
449
@@ -513,8 +513,8 @@ final class ModulesGraphTests: XCTestCase {
513
513
)
514
514
515
515
testDiagnostics(observability.diagnostics){ result in
516
-
result.checkUnordered(diagnostic:"multiple targets named 'Bar' in: 'fourth', 'third'", severity:.error)
517
-
result.checkUnordered(diagnostic:"multiple targets named 'Foo' in: 'first', 'second'", severity:.error)
516
+
result.checkUnordered(diagnostic:"multiple packages ('fourth', 'third') declare targets with a conflicting name: 'Bar’; target names need to be unique across the package graph", severity:.error)
517
+
result.checkUnordered(diagnostic:"multiple packages ('first', 'second') declare targets with a conflicting name: 'Foo’; target names need to be unique across the package graph", severity:.error)
518
518
}
519
519
}
520
520
@@ -582,7 +582,7 @@ final class ModulesGraphTests: XCTestCase {
582
582
)
583
583
584
584
testDiagnostics(observability.diagnostics){ result in
585
-
result.check(diagnostic:"multiple targets named 'First' in: 'first', 'fourth'", severity:.error)
585
+
result.check(diagnostic:"multiple packages ('first', 'fourth') declare targets with a conflicting name: 'First’; target names need to be unique across the package graph", severity:.error)
586
586
}
587
587
}
588
588
@@ -1302,7 +1302,7 @@ final class ModulesGraphTests: XCTestCase {
1302
1302
)
1303
1303
1304
1304
testDiagnostics(observability.diagnostics){ result in
1305
-
result.check(diagnostic:"multiple targets named 'Foo' in: 'dep2', 'start'", severity:.error)
1305
+
result.check(diagnostic:"multiple packages ('dep2', 'start') declare targets with a conflicting name: 'Foo’; target names need to be unique across the package graph", severity:.error)
1306
1306
}
1307
1307
}
1308
1308
@@ -1351,8 +1351,7 @@ final class ModulesGraphTests: XCTestCase {
XCTAssertEqual((error as?PackageGraphError)?.description,"multiple packages (\'bar\' (at '\(barPkg)'), \'baz\' (at '\(bazPkg)')) declare products with a conflicting name: \'Bar’; product names need to be unique across the package graph")
0 commit comments