diff --git a/execution/executors/oci/oci.go b/execution/executors/oci/oci.go index 685b9d5..1a01e64 100644 --- a/execution/executors/oci/oci.go +++ b/execution/executors/oci/oci.go @@ -37,6 +37,9 @@ type OCIRuntime struct { } func (r *OCIRuntime) Create(ctx context.Context, id string, o execution.CreateOpts) (container *execution.Container, err error) { + if o.Bundle == "" { + return nil, errors.New("bundle path cannot be an empty string") + } oio, err := newOIO(o.Stdin, o.Stdout, o.Stderr, o.Console) if err != nil { return nil, err