Skip to content
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

update annotations #168

Merged
merged 1 commit into from
Aug 1, 2017
Merged

Conversation

zhouhao3
Copy link

I do not understand why #152 is closed, so I resubmitted the fix patch.

Signed-off-by: zhouhao zhouhao@cn.fujitsu.com

if index.Manifests[i].Annotations["org.opencontainers.ref.name"] != "" {
refs[index.Manifests[i].Annotations["org.opencontainers.ref.name"]] = &index.Manifests[i]
if index.Manifests[i].Annotations["org.opencontainers.image.ref.name"] != "" {
refs[index.Manifests[i].Annotations["org.opencontainers.image.ref.name"]] = &index.Manifests[i]
Copy link
Contributor

Choose a reason for hiding this comment

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

Since #163 bumped image-spec to 1.0.0, you can use AnnotationRefName instead of a string literal.

Copy link
Author

Choose a reason for hiding this comment

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

updated, thanks.

Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
@zhouhao3
Copy link
Author

ping @opencontainers/image-tools-maintainers

@zhouhao3
Copy link
Author

zhouhao3 commented Aug 1, 2017

@coolljt0725
Copy link
Member

coolljt0725 commented Aug 1, 2017

LGTM

Approved with PullApprove

1 similar comment
@xiekeyang
Copy link
Contributor

xiekeyang commented Aug 1, 2017

LGTM

Approved with PullApprove

@xiekeyang xiekeyang merged commit 5854592 into opencontainers:master Aug 1, 2017
@zhouhao3 zhouhao3 deleted the fix-annnoation branch August 1, 2017 06:18
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.

4 participants