Skip to content

Commit b1ea45b

Browse files
committed
pass more tests swiftlang#2
1 parent 33df943 commit b1ea45b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Tests/WorkspaceTests/WorkspaceTests.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10820,8 +10820,9 @@ final class WorkspaceTests: XCTestCase {
1082010820

1082110821
try await workspace.checkPackageGraph(roots: ["Root"]) { _, diagnostics in
1082210822
testDiagnostics(diagnostics) { result in
10823+
let tmpDirCanonicalPackageLocation = CanonicalPackageLocation(tmpDir.pathString)
1082310824
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.",
1082510826
severity: .error
1082610827
)
1082710828
}
@@ -11163,8 +11164,9 @@ final class WorkspaceTests: XCTestCase {
1116311164
// we will escalate this to an error in a few versions to tighten up the validation
1116411165
try await workspace.checkPackageGraph(roots: ["Root"]) { _, diagnostics in
1116511166
testDiagnostics(diagnostics) { result in
11167+
let tmpDirCanonicalPackageLocation = CanonicalPackageLocation(tmpDir.pathString)
1116611168
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.",
1116811170
severity: .warning
1116911171
)
1117011172
// FIXME: rdar://72940946
@@ -11567,8 +11569,9 @@ final class WorkspaceTests: XCTestCase {
1156711569
// we will escalate this to an error in a few versions to tighten up the validation
1156811570
try await workspace.checkPackageGraph(roots: ["Root"]) { _, diagnostics in
1156911571
testDiagnostics(diagnostics) { result in
11572+
let tmpDirCanonicalPackageLocation = CanonicalPackageLocation(tmpDir.pathString)
1157011573
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.",
1157211575
severity: .warning
1157311576
)
1157411577
}
@@ -14750,7 +14753,7 @@ final class WorkspaceTests: XCTestCase {
1475014753
let tmpDirCanonicalPackageLocation = CanonicalPackageLocation(tmpDir.pathString)
1475114754
result.check(
1475214755
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.
1475414757
"""),
1475514758
severity: .warning
1475614759
)

0 commit comments

Comments
 (0)