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
[PackageGraph] Use DFS to build a set of package graph nodes to load
Avoids duplicating the work and allows dependencies to have cyclic
entries because cyclic product and/or target references are the
only problematic cases for the build since they cannot be planned
properly.
@@ -1065,55 +1051,3 @@ private final class ResolvedPackageBuilder: ResolvedBuilder<ResolvedPackage> {
1065
1051
)
1066
1052
}
1067
1053
}
1068
-
1069
-
/// Finds the first cycle encountered in a graph.
1070
-
///
1071
-
/// This is different from the one in tools support core, in that it handles equality separately from node traversal. Nodes traverse product filters, but only the manifests must be equal for there to be a cycle.
diagnostic: "'bar' dependency on '/tmp/ws/pkgs/other/utility' conflicts with dependency on '/tmp/ws/pkgs/foo/utility' which has the same identity 'utility'",
11127
11127
severity: .error
11128
11128
)
11129
11129
}
@@ -11207,7 +11207,11 @@ final class WorkspaceTests: XCTestCase {
11207
11207
// FIXME: rdar://72940946
11208
11208
// we need to improve this situation or diagnostics when working on identity
diagnostic: "'bar' dependency on '/tmp/ws/pkgs/other/utility' conflicts with dependency on '/tmp/ws/pkgs/foo/utility' which has the same identity 'utility'. this will be escalated to an error in future versions of SwiftPM.",
11211
+
severity: .warning
11212
+
)
11213
+
result.check(
11214
+
diagnostic: "product 'OtherUtilityProduct' required by package 'bar' target 'BarTarget' not found in package 'OtherUtilityPackage'.",
11211
11215
severity: .error
11212
11216
)
11213
11217
}
@@ -11282,7 +11286,7 @@ final class WorkspaceTests: XCTestCase {
11282
11286
// FIXME: rdar://72940946
11283
11287
// we need to improve this situation or diagnostics when working on identity
0 commit comments