-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: validate that command contains one field #842
Conversation
LGTM |
for docker images which has entrypoint /cmd specified in the dockerfile/metadata, this will not cause failure? or we expect to enforce passing command explicitly, always ? |
@ranjib This shouldn't cause any issues with entrypoint stuff. This only throws an error if you have spaces in the |
drivers: validate that command contains one field
Is there any way to pass a command with space in it ? If that's not allowed, the warning should happen far before the driver execution and correctly documented. Ideally, you should not simply do a lookup on space, but a full quoting check. |
@ninoles Are you trying to do something like
|
#No, I'm trying to start "C:\Program Files\Python35\python.exe". I could push out to cmd.exe or powershell, but that's not ideal. I could also put the binary path in an environment variable and set command with it (the validation happen BEFORE variable replacement in the case of exec and raw_exec driver). Also, one problem with it is the error report is confusing: "C:\Program Files\Python35\python.exe" doesn't have any arguments, so why it complains about it ? In the end, I think the validation shouldn't happen, or at least shouldn't be an error. The config format is very well suited for supporting space in executable path, so why not allowing it ? I open a bug in this regard: #1737 |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Drivers that support a command field now validate that a single input is given.