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
Copy file name to clipboardExpand all lines: Tests/WorkspaceTests/WorkspaceTests.swift
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -10820,8 +10820,9 @@ final class WorkspaceTests: XCTestCase {
10820
10820
10821
10821
try await workspace.checkPackageGraph(roots: ["Root"]) { _, diagnostics in
10822
10822
testDiagnostics(diagnostics) { result in
10823
+
let tmpDirCanonicalPackageLocation = CanonicalPackageLocation(tmpDir.pathString)
10823
10824
result.check(
10824
-
diagnostic: "Conflicting identity for utility: dependency '\(tmpDir)/pkgs/other/utility' and dependency '\(tmpDir)/pkgs/foo/utility' both point to the same package identity 'utility'. The dependencies are introduced through the following chains: (A) \(tmpDir)/roots/root->\(tmpDir)/pkgs/bar->\(tmpDir)/pkgs/other/utility (B) \(tmpDir)/roots/root->\(tmpDir)/pkgs/foo/utility. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency.",
10825
+
diagnostic: "Conflicting identity for utility: dependency '\(tmpDirCanonicalPackageLocation)/pkgs/other/utility' and dependency '\(tmpDirCanonicalPackageLocation)/pkgs/foo/utility' both point to the same package identity 'utility'. The dependencies are introduced through the following chains: (A) \(tmpDirCanonicalPackageLocation)/roots/root->\(tmpDirCanonicalPackageLocation)/pkgs/bar->\(tmpDirCanonicalPackageLocation)/pkgs/other/utility (B) \(tmpDirCanonicalPackageLocation)/roots/root->\(tmpDirCanonicalPackageLocation)/pkgs/foo/utility. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency.",
10825
10826
severity: .error
10826
10827
)
10827
10828
}
@@ -11163,8 +11164,9 @@ final class WorkspaceTests: XCTestCase {
11163
11164
// we will escalate this to an error in a few versions to tighten up the validation
11164
11165
try await workspace.checkPackageGraph(roots: ["Root"]) { _, diagnostics in
11165
11166
testDiagnostics(diagnostics) { result in
11167
+
let tmpDirCanonicalPackageLocation = CanonicalPackageLocation(tmpDir.pathString)
11166
11168
result.check(
11167
-
diagnostic: "Conflicting identity for utility: dependency '\(tmpDir)/pkgs/other-foo/utility' and dependency '\(tmpDir)/pkgs/foo/utility' both point to the same package identity 'utility'. The dependencies are introduced through the following chains: (A) \(tmpDir)/roots/root->\(tmpDir)/pkgs/bar->\(tmpDir)/pkgs/other-foo/utility (B) \(tmpDir)/roots/root->\(tmpDir)/pkgs/foo/utility. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.",
11169
+
diagnostic: "Conflicting identity for utility: dependency '\(tmpDirCanonicalPackageLocation)/pkgs/other-foo/utility' and dependency '\(tmpDirCanonicalPackageLocation)/pkgs/foo/utility' both point to the same package identity 'utility'. The dependencies are introduced through the following chains: (A) \(tmpDirCanonicalPackageLocation)/roots/root->\(tmpDirCanonicalPackageLocation)/pkgs/bar->\(tmpDirCanonicalPackageLocation)/pkgs/other-foo/utility (B) \(tmpDirCanonicalPackageLocation)/roots/root->\(tmpDirCanonicalPackageLocation)/pkgs/foo/utility. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.",
11168
11170
severity: .warning
11169
11171
)
11170
11172
// FIXME: rdar://72940946
@@ -11567,8 +11569,9 @@ final class WorkspaceTests: XCTestCase {
11567
11569
// we will escalate this to an error in a few versions to tighten up the validation
11568
11570
try await workspace.checkPackageGraph(roots: ["Root"]) { _, diagnostics in
11569
11571
testDiagnostics(diagnostics) { result in
11572
+
let tmpDirCanonicalPackageLocation = CanonicalPackageLocation(tmpDir.pathString)
11570
11573
result.check(
11571
-
diagnostic: "Conflicting identity for foo: dependency 'github.com/foo-moved/foo' and dependency 'github.com/foo/foo' both point to the same package identity 'foo'. The dependencies are introduced through the following chains: (A) \(tmpDir)/roots/root->\(tmpDir)/pkgs/bar->github.com/foo-moved/foo (B) \(tmpDir)/roots/root->github.com/foo/foo. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.",
11574
+
diagnostic: "Conflicting identity for foo: dependency 'github.com/foo-moved/foo' and dependency 'github.com/foo/foo' both point to the same package identity 'foo'. The dependencies are introduced through the following chains: (A) \(tmpDirCanonicalPackageLocation)/roots/root->\(tmpDirCanonicalPackageLocation)/pkgs/bar->github.com/foo-moved/foo (B) \(tmpDirCanonicalPackageLocation)/roots/root->github.com/foo/foo. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.",
11572
11575
severity: .warning
11573
11576
)
11574
11577
}
@@ -14750,7 +14753,7 @@ final class WorkspaceTests: XCTestCase {
14750
14753
let tmpDirCanonicalPackageLocation = CanonicalPackageLocation(tmpDir.pathString)
14751
14754
result.check(
14752
14755
diagnostic: .contains("""
14753
-
dependency 'git/org/baz' and dependency 'org.baz' both point to the same package identity 'org.baz'. The dependencies are introduced through the following chains: (A) \(tmpDirCanonicalPackageLocation)/roots/root->org.foo->git/org/baz (B) \(tmpDir)/roots/root->org.bar->org.baz.
14756
+
dependency 'git/org/baz' and dependency 'org.baz' both point to the same package identity 'org.baz'. The dependencies are introduced through the following chains: (A) \(tmpDirCanonicalPackageLocation)/roots/root->org.foo->git/org/baz (B) \(tmpDirCanonicalPackageLocation)/roots/root->org.bar->org.baz.
0 commit comments