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
packageObservabilityScope.emit(info:"dependency on '\(resolvedPackage.package.identity)' is represented by similar locations ('\(resolvedPackage.package.manifest.packageLocation)' and '\(dependencyPackageRef.locationString)') which are treated as the same canonical location '\(dependencyPackageRef.canonicalLocation)'.")
273
277
}
274
278
275
279
// checks if two dependencies have the same explicit name which can cause target based dependency package lookup issue
@@ -4155,14 +4166,19 @@ final class WorkspaceTests: XCTestCase {
4155
4166
result.checkTarget("Foo"){ result in result.check(dependencies:"Bar","Baz")}
4156
4167
result.checkTarget("Bar"){ result in result.check(dependencies:"Baz")}
4157
4168
}
4158
-
XCTAssertNoDiagnostics(diagnostics)
4169
+
testDiagnostics(diagnostics, minSeverity:.info){ result in
4170
+
result.checkUnordered(
4171
+
diagnostic:"dependency on 'baz' is represented by similar locations ('https://localhost/org/baz' and 'https://localhost/org/Baz') which are treated as the same canonical location 'localhost/org/baz'.",
// 9/2021 this is currently emitting a warning only to support backwards compatibility
8223
+
// we will escalate this to an error in a few versions to tighten up the validation
8224
+
try workspace.checkPackageGraph(roots:["Root"]){ graph, diagnostics in
8225
+
testDiagnostics(diagnostics, minSeverity:.info){ result in
8226
+
result.checkUnordered(
8227
+
diagnostic:"dependency on 'foo' is represented by similar locations ('https://github.com/org/foo.git' and 'https://github.com/ORG/Foo.git') which are treated as the same canonical location 'github.com/org/foo'.",
8228
+
severity:.info
8229
+
)
8230
+
result.checkUnordered(
8231
+
diagnostic:"dependency on 'baz' is represented by similar locations ('https://github.com/org/baz.git' and 'https://github.com/org/baz') which are treated as the same canonical location 'github.com/org/baz'.",
0 commit comments