Skip to content

Commit f36e88a

Browse files
shirish4Shirish
andauthored
fix for PHX-3789 (#208)
Co-authored-by: Shirish <[email protected]>
1 parent 650ab0b commit f36e88a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

pkg/core/lifecycle.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,6 @@ func (pl *Pipeline) runDiscoveryV1(ctx context.Context,
324324
}
325325
return nil
326326
})
327-
328-
err := pl.ExecutionManager.ExecuteInternalCommands(ctx, InstallRunners, global.InstallRunnerCmds, global.RepoDir, nil, nil)
329-
if err != nil {
330-
pl.Logger.Errorf("Unable to install custom runners %v", err)
331-
err = errs.New(errs.GenericErrRemark.Error())
332-
return err
333-
}
334327
}
335328

336329
pl.Logger.Infof("Identifying changed files ...")
@@ -366,6 +359,15 @@ func (pl *Pipeline) runDiscoveryV1(ctx context.Context,
366359
}
367360
}
368361

362+
if language == languageJs {
363+
err = pl.ExecutionManager.ExecuteInternalCommands(ctx, InstallRunners, global.InstallRunnerCmds, global.RepoDir, nil, nil)
364+
if err != nil {
365+
pl.Logger.Errorf("Unable to install custom runners %v", err)
366+
err = errs.New(errs.GenericErrRemark.Error())
367+
return err
368+
}
369+
}
370+
369371
pl.Logger.Debugf("Caching workspace")
370372

371373
if err = pl.CacheStore.CacheWorkspace(ctx, ""); err != nil {

0 commit comments

Comments
 (0)