Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

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

Open
zhouhao3 wants to merge 1 commit intoopencontainers:masterfrom
zhouhao3:platform-warn
Open

image: add a warning when the platform is not applicable#180
zhouhao3 wants to merge 1 commit intoopencontainers:masterfrom
zhouhao3:platform-warn

Conversation

@zhouhao3
Copy link

@zhouhao3 zhouhao3 commented Sep 4, 2017

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

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants