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

image: add a warning when the platform is not applicable #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhouhao3
Copy link

@zhouhao3 zhouhao3 commented Sep 4, 2017

Signed-off-by: zhouhao [email protected]

@@ -179,6 +179,10 @@ func unpack(w walker, dest, refName, platform string) error {
}

if ref.MediaType == validRefMediaTypes[0] {
if platform != "" {
fmt.Println("WARNING: reftype manifest does not support platform option, which are only applicable if reftype is index.")

Choose a reason for hiding this comment

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

In --platform's help message, we already have such hint, I think there it no need to notify user again

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