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
Revert "Add diagnostics to use module aliasing when duplicate targets found (#5606)"
This reverts commit 33e05c7.
We should not make this suggestion without better contextual awareness because it can often be confusing, e.g. when someone is already using a module alias in a case where it isn't supposed to work (see #6841).
If we could find a way to confidently make the suggestion, we could bring it back, but currently it can be more confusing than not.
Copy file name to clipboardExpand all lines: Tests/PackageGraphTests/PackageGraphTests.swift
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -337,7 +337,7 @@ class PackageGraphTests: XCTestCase {
337
337
)
338
338
339
339
testDiagnostics(observability.diagnostics){ result in
340
-
result.check(diagnostic:"multiple targets named 'Bar' in: 'bar', 'foo'; consider using the `moduleAliases` parameter in manifest to provide unique names", severity:.error)
340
+
result.check(diagnostic:"multiple targets named 'Bar' in: 'bar', 'foo'", severity:.error)
341
341
}
342
342
}
343
343
@@ -396,7 +396,7 @@ class PackageGraphTests: XCTestCase {
396
396
)
397
397
398
398
testDiagnostics(observability.diagnostics){ result in
399
-
result.check(diagnostic:"multiple targets named 'First' in: 'first', 'fourth', 'second', 'third'; consider using the `moduleAliases` parameter in manifest to provide unique names", severity:.error)
399
+
result.check(diagnostic:"multiple targets named 'First' in: 'first', 'fourth', 'second', 'third'", severity:.error)
400
400
}
401
401
}
402
402
@@ -466,8 +466,8 @@ class PackageGraphTests: XCTestCase {
466
466
)
467
467
468
468
testDiagnostics(observability.diagnostics){ result in
469
-
result.checkUnordered(diagnostic:"multiple targets named 'Bar' in: 'fourth', 'third'; consider using the `moduleAliases` parameter in manifest to provide unique names", severity:.error)
470
-
result.checkUnordered(diagnostic:"multiple targets named 'Foo' in: 'first', 'second'; consider using the `moduleAliases` parameter in manifest to provide unique names", severity:.error)
469
+
result.checkUnordered(diagnostic:"multiple targets named 'Bar' in: 'fourth', 'third'", severity:.error)
470
+
result.checkUnordered(diagnostic:"multiple targets named 'Foo' in: 'first', 'second'", severity:.error)
471
471
}
472
472
}
473
473
@@ -535,7 +535,7 @@ class PackageGraphTests: XCTestCase {
535
535
)
536
536
537
537
testDiagnostics(observability.diagnostics){ result in
538
-
result.check(diagnostic:"multiple targets named 'First' in: 'first', 'fourth'; consider using the `moduleAliases` parameter in manifest to provide unique names", severity:.error)
538
+
result.check(diagnostic:"multiple targets named 'First' in: 'first', 'fourth'", severity:.error)
539
539
}
540
540
}
541
541
@@ -1255,7 +1255,7 @@ class PackageGraphTests: XCTestCase {
1255
1255
)
1256
1256
1257
1257
testDiagnostics(observability.diagnostics){ result in
1258
-
result.check(diagnostic:"multiple targets named 'Foo' in: 'dep2', 'start'; consider using the `moduleAliases` parameter in manifest to provide unique names", severity:.error)
1258
+
result.check(diagnostic:"multiple targets named 'Foo' in: 'dep2', 'start'", severity:.error)
0 commit comments