Skip to content

don't overwrite hook which has a same path#571

Merged
zhouhao3 merged 1 commit intoopencontainers:masterfrom
liangchenye:release
Feb 7, 2018
Merged

don't overwrite hook which has a same path#571
zhouhao3 merged 1 commit intoopencontainers:masterfrom
liangchenye:release

Conversation

@liangchenye
Copy link
Copy Markdown
Member

Signed-off-by: Liang Chenye liangchenye@huawei.com

Signed-off-by: Liang Chenye <liangchenye@huawei.com>
@liangchenye
Copy link
Copy Markdown
Member Author

The issue is found in #569.

For history reason, we add a hook and add hook env separately, so the 'path' is the unique ID to add env correctly. Now we are adding a full hook with json format, so we don't need to have this limitation.
Also, in the spec, it is OK to have hooks with the same 'path'.

@liangchenye
Copy link
Copy Markdown
Member Author

PTAL @q384566678 @Mashimiao

@zhouhao3
Copy link
Copy Markdown

zhouhao3 commented Feb 7, 2018

LGTM

Approved with PullApprove

@zhouhao3 zhouhao3 merged commit ed3bcb2 into opencontainers:master Feb 7, 2018
@liangchenye liangchenye deleted the release branch February 28, 2018 10:47
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.

2 participants