Skip to content

Commit 1d17f5a

Browse files
committed
check both fields
1 parent b8042be commit 1d17f5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/ext/process/gen.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ func (r *Runner) Invoke(ctx context.Context, method string, args any, reply any,
7171
}
7272
cmd = exec.CommandContext(ctx, path, method)
7373
cmd.Args = []string{"run", r.GoPkg}
74+
case r.Cmd != "" && r.GoPkg != "":
75+
return fmt.Errorf("only one of cmd or go_package is allowed")
7476
default:
7577
return fmt.Errorf("cmd and go_package cannot both be empty for process plugin")
7678
}

0 commit comments

Comments
 (0)