File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -303,15 +303,14 @@ impl StepDescription {
303
303
}
304
304
305
305
fn maybe_run ( & self , builder : & Builder < ' _ > , pathsets : Vec < PathSet > ) {
306
- if pathsets. iter ( ) . any ( |set| self . is_excluded ( builder, set) ) {
307
- return ;
308
- }
306
+ let excluded_pathsets: Vec < PathSet > =
307
+ pathsets. iter ( ) . filter ( |set| !self . is_excluded ( builder, set) ) . clone ( ) . collect ( ) ;
309
308
310
309
// Determine the targets participating in this rule.
311
310
let targets = if self . only_hosts { & builder. hosts } else { & builder. targets } ;
312
311
313
312
for target in targets {
314
- let run = RunConfig { builder, paths : pathsets . clone ( ) , target : * target } ;
313
+ let run = RunConfig { builder, paths : excluded_pathsets . clone ( ) , target : * target } ;
315
314
( self . make_run ) ( run) ;
316
315
}
317
316
}
You can’t perform that action at this time.
0 commit comments