-
Notifications
You must be signed in to change notification settings - Fork 395
Signed v2s1 oci skip #84
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
Conversation
| err = ociDest.PutManifest([]byte(m)) | ||
| require.Error(t, err) | ||
| assert.Contains(t, `Unrecognized manifest media type: "application/vnd.docker.distribution.manifest.v1+prettyjws"`, err.Error()) | ||
| assert.Equal(t, `can't create an OCI manifest from Docker V2 schema 1 manifest`, err.Error()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's ok not to differentiate between signed and not-signed here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes; the users don’t even want to know about schema versions, let alone the pointless signatures.
That’s a good point; OTOH the set of MIME types detected by |
you are right, fixing it! |
Signed-off-by: Antonio Murdaca <[email protected]>
38f9a6b to
e9c5a80
Compare
|
@mtrmac fixed PTAL |
Signed-off-by: Antonio Murdaca <[email protected]>
alright @mtrmac this should be the right fix for containers/skopeo#198 - note that `GuessManifestMIMEType cannot actually return a meaningful string to be printed when the mime type isn't recognized so - we may just debug print the manifest.