File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1772,7 +1772,14 @@ Future<void> _checkConsumerDependencies() async {
17721772
17731773      final  List <String > currentDependencies =  (currentPackage['dependencies' ]!  as  List <Object ?>).cast <String >();
17741774      for  (final  String  dependency in  currentDependencies) {
1775-         workset.add (dependencyTree[dependency]! );
1775+         // Don't add dependencies we've already seen or we will get stuck 
1776+         // forever if there are any circular references. 
1777+         // TODO(dantup): Consider failing gracefully with the names of the 
1778+         //  packages once the cycle between test_api and matcher is resolved. 
1779+         //  https://github.com/dart-lang/test/issues/1979 
1780+         if  (! dependencies.contains (dependency)) {
1781+           workset.add (dependencyTree[dependency]! );
1782+         }
17761783      }
17771784    }
17781785  }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments