File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,14 @@ var targets: [Target] = [
123123
124124if  buildOnlyTests { 
125125  products =  [ ] 
126+   let  allowedNames :  Set < String >  =  [ " _SwiftFormatTestSupport " ,  " _GenerateSwiftFormat " ] 
126127  targets =  targets. compactMap  {  target in 
127-     guard  target. isTest || target. name  ==   " _SwiftFormatTestSupport "  else  { 
128+     guard  target. isTest || allowedNames . contains ( target. name)  else  { 
128129      return  nil 
129130    } 
130-     target. dependencies =  target. dependencies. filter  {  dependency  in 
131-       if  case . byNameItem( name :   " _SwiftFormatTestSupport " ,  _)  =  dependency  { 
132-         return  true 
131+     target. dependencies =  target. dependencies. filter  { 
132+       if  case . byNameItem( let  name ,  _)  =  $0  { 
133+         return  allowedNames . contains ( name ) 
133134      } 
134135      return  false 
135136    } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments