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

Validate oci-layout version #50

Closed
wants to merge 1 commit into from

Conversation

coolljt0725
Copy link
Member

OCI image specification has required that
"oci-layout" MUST contain a JSON object with a version field {"imageLayoutVersion": "1.0.0"},
the image tool should follow this rule.

Signed-off-by: Lei Jitang [email protected]

Copy link
Contributor

@wking wking left a comment

Choose a reason for hiding this comment

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

This is also covered by #5, but I'm ok with landing this here if folks don't want to wait for the maintainers to review #5.

@@ -49,6 +58,9 @@ var validRefMediaTypes = []string{
}

func validate(w walker, refs []string, out *log.Logger) error {
if err := validatImageLayout(w); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

validatImageLayoutvalidateImageLayout.

@coolljt0725 coolljt0725 force-pushed the layout branch 2 times, most recently from 8c1e6e0 to 25edff2 Compare October 25, 2016 06:08
OCI image specification has required that
`"oci-layout" MUST contain a JSON object with a version field {"imageLayoutVersion": "1.0.0"}`,
the image tool should follow this rule.

Signed-off-by: Lei Jitang <[email protected]>
@vbatts
Copy link
Member

vbatts commented Feb 8, 2017

I'm +1, but make lint failure needs to be fixed.

@coolljt0725
Copy link
Member Author

wait for opencontainers/image-spec#519 and then rebase

@coolljt0725
Copy link
Member Author

close by #84

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.

3 participants