File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1041,6 +1041,8 @@ public class DependencyResolver {
1041
1041
subjectTo allConstraints: PackageContainerConstraintSet ,
1042
1042
excluding allExclusions: [ PackageReference : Set < Version > ]
1043
1043
) -> AnySequence < VersionAssignmentSet > {
1044
+ guard self . error == nil else { return AnySequence ( [ ] ) }
1045
+
1044
1046
// The key that is used to cache this assignement set.
1045
1047
let cacheKey = ResolveSubtreeCacheKey ( container: container, allConstraints: allConstraints)
1046
1048
@@ -1067,6 +1069,7 @@ public class DependencyResolver {
1067
1069
//
1068
1070
// FIXME: We must detect recursion here.
1069
1071
func merge( constraints: [ PackageContainerConstraint ] , binding: BoundVersion ) -> AnySequence < VersionAssignmentSet > {
1072
+ guard self . error == nil else { return AnySequence ( [ ] ) }
1070
1073
1071
1074
// Diagnose if this container depends on itself.
1072
1075
if constraints. contains ( where: { $0. identifier == container. identifier } ) {
@@ -1181,6 +1184,8 @@ public class DependencyResolver {
1181
1184
subjectTo allConstraints: PackageContainerConstraintSet ,
1182
1185
excluding allExclusions: [ PackageReference : Set < Version > ]
1183
1186
) -> AnySequence < VersionAssignmentSet > {
1187
+ guard self . error == nil else { return AnySequence ( [ ] ) }
1188
+
1184
1189
var allConstraints = allConstraints
1185
1190
1186
1191
// Never prefetch when running in incomplete mode.
You can’t perform that action at this time.
0 commit comments