diff --git a/internal/runner/parallel/parallel.go b/internal/runner/parallel/parallel.go index 0227c74..606caf1 100644 --- a/internal/runner/parallel/parallel.go +++ b/internal/runner/parallel/parallel.go @@ -70,6 +70,8 @@ func handleExec( } case refConfig.Cmd != "": exec = execUtils.ExecutableForCmd(parent, refConfig.Cmd, i) + default: + return errors.New("parallel executable must have a ref or cmd") } execPromptedEnv := make(map[string]string) diff --git a/internal/runner/serial/serial.go b/internal/runner/serial/serial.go index ebe3452..0214efa 100644 --- a/internal/runner/serial/serial.go +++ b/internal/runner/serial/serial.go @@ -63,6 +63,8 @@ func handleExec( } case refConfig.Cmd != "": exec = execUtils.ExecutableForCmd(parent, refConfig.Cmd, i) + default: + return errors.New("serial executable must have a ref or cmd") } ctx.Logger.Debugf("executing %s (%d/%d)", exec.Ref(), i+1, len(serialSpec.Execs))