Skip to content

Conversation

Mashimiao
Copy link

Signed-off-by: Ma Shimiao mashimiao.fnst@cn.fujitsu.com

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
@@ -328,7 +328,7 @@ Hooks allow for the configuration of custom actions related to the [lifecycle](r
Entries in the array contain the following properties:
* **`path`** (string, REQUIRED) with similar semantics to [IEEE Std 1003.1-2001 `execv`'s *path*][ieee-1003.1-2001-xsh-exec].
This specification extends the IEEE standard in that **`path`** MUST be absolute.
* **`args`** (array of strings, REQUIRED) with the same semantics as [IEEE Std 1003.1-2001 `execv`'s *argv*][ieee-1003.1-2001-xsh-exec].
* **`args`** (array of strings, OPTIONAL) with the same semantics as [IEEE Std 1003.1-2001 `execv`'s *argv*][ieee-1003.1-2001-xsh-exec].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're thinking about adjusting this, I still prefer Python's approach which makes path optional. I'd also like to unify the approach to process invocation between hooks and process (having different semantics for args depending on the context is just confusing). But if those are not on the table, this change looks ok to me, and gets us back closer to the old Go semantics with their optional Args.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for keeping consistency for args's semantics between process and hooks, either current version for process or go semantics works for me.

@crosbymichael
Copy link
Member

crosbymichael commented Feb 15, 2017

LGTM

Approved with PullApprove

1 similar comment
@mrunalp
Copy link
Contributor

mrunalp commented Feb 15, 2017

LGTM

Approved with PullApprove

@mrunalp mrunalp merged commit e6d2a0f into opencontainers:master Feb 15, 2017
@wking
Copy link
Contributor

wking commented Feb 15, 2017 via email

@vbatts vbatts mentioned this pull request Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants