in plugin/step/bundle/bundle.go [69:88]
func (b *Bundle) Execute() error {
entryPoint, err := findEntrypoint(b.downloadPath)
if err != nil {
return err
}
ctx, cancel := context.WithTimeout(context.Background(), time.Duration(b.TimeoutSeconds)*time.Second)
defer cancel()
var cmd *exec.Cmd
cmd = commandForPath(entryPoint, ctx)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Dir = b.downloadPath
if err := cmd.Run(); err != nil {
return err
}
return nil
}