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: schema2: add no-conversion for schema2 configs #169

Closed
wants to merge 1 commit into from
Closed

image: schema2: add no-conversion for schema2 configs #169

wants to merge 1 commit into from

Conversation

cyphar
Copy link
Contributor

@cyphar cyphar commented Nov 25, 2016

Previously, if a Docker Schema2 configuration was being "converted" to a
Schema2 configuration then it would cause errors even though the
conversion should be a simple copy. Fix this by just adding a dummy
conversion (just like in schema1).

Fixes: #168
Signed-off-by: Aleksa Sarai asarai@suse.de

Previously, if a Docker Schema2 configuration was being "converted" to a
Schema2 configuration then it would cause errors even though the
conversion should be a simple copy. Fix this by just adding a dummy
conversion (just like in schema1).

Signed-off-by: Aleksa Sarai <asarai@suse.de>
@mtrmac
Copy link
Collaborator

mtrmac commented Nov 25, 2016

Thanks, but this really should do a proper conversion instead, as you have discovered in #171.

The schema1 case is not really a template to follow; Docker treats both the signed and unsigned MIME types completely equivalently (e.g. requiring the presence of a signature); OTOH schema2/OCI really are different.

Currently, schema2 rejects a conversion to itself because it very likely means a confused caller. Philosophically this is of course debatable, a silent no-op also makes some sense, but OCI→schema2 does need to really convert.

@cyphar
Copy link
Contributor Author

cyphar commented Nov 26, 2016

This will be handled in #172 (#171).

@cyphar cyphar closed this Nov 26, 2016
@cyphar cyphar deleted the 168-fix-schema2-self-conversion branch November 26, 2016 04:47
giuseppe pushed a commit to giuseppe/image that referenced this pull request Jan 24, 2017
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.

None yet

2 participants