-
Notifications
You must be signed in to change notification settings - Fork 70
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
RFC 0045: handling of args in direct=false processes #116
Conversation
buildpack.md
Outdated
@@ -556,7 +556,10 @@ To choose an execution strategy, | |||
|
|||
1. **IF** a buildpack-provided process type is chosen as the start command, | |||
1. **IF** the process type does not have `direct` set to `true`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's better to write
**IF** the process type has `direct` set to `false`
**THEN** the lifecycle MUST invoke the value of `command` as a command using Bash with values of `args` provided as arguments. | ||
1. **IF** the process has one or more `args` | ||
**THEN** the lifecycle MUST invoke a command using Bash, where `command` and each entry in `args` are shell-parsed tokens in the command. | ||
2. **IF** the process has zero `args` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about changing 1 + 2
to if - else
?
I'm not sure what is more clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to insert this change without changing the conventions in this part of the spec. The existing convention here is numbered IFs.
Signed-off-by: Emily Casey <ecasey@vmware.com>
Now that we have buidpack API dependent launch logic, the launcher needs the api of each buildpack to exist in metadata.toml so it can do the right thing * See #116 for an example (arg parsing for direct=false processes) Other phases may have buidpack API dependent logic as well. Adding the `api` to group.toml will provide this the api of each buildpack everywhere it is needed. Signed-off-by: Emily Casey <ecasey@vmware.com>
Now that we have buidpack API dependent launch logic, the launcher needs the api of each buildpack to exist in metadata.toml so it can do the right thing * See #116 for an example (arg parsing for direct=false processes) Other phases may have buidpack API dependent logic as well. Adding the `api` to group.toml will provide this the api of each buildpack everywhere it is needed. Signed-off-by: Emily Casey <ecasey@vmware.com>
No description provided.