-
Notifications
You must be signed in to change notification settings - Fork 652
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
add compatibility mediatype #320
Conversation
On Sat, Sep 17, 2016 at 11:51:17PM -0700, xiekeyang wrote:
Having Go constants for these media types matches the existing "application/vnd.docker.distribution.manifest.list.v2+json" with a hard-coded: MediaTypeDockerImageManifestList ? |
If this will be used in code actually, I'm +1 on this one, otherwise I don't see the point either. |
Signed-off-by: xiekeyang <[email protected]>
On Sun, Sep 18, 2016 at 12:21:30AM -0700, Antonio Murdaca wrote:
I expect somebody (probably at least Docker) will be considering |
@wking @runcom
It seems that maintainers don't like to import docker package to oci projects, so I have to re-definition them here. WDYT? |
On Sun, Sep 18, 2016 at 12:42:44AM -0700, xiekeyang wrote:
Yes, I think we should be validating media types. See #304 for some
I don't think we need image-tools to support the Docker types if err := m.Config.validate(w, []string{v1.MediaTypeImageConfig}); err != nil { to: err := m.Config.validate(w, []string{ Using v1.MediaTypeImageConfig (or one of the constants you're adding |
@wking so you prefer 40+ chars strings to consts (not in a war strings over const)? It is a useful trade to me to have const instead of strings, the level of indirection and metal overhead (?) are easy to fix with "go to definition" functionalities in your editor. Even if we won't rename anymore the media types, it doesn't mean we should start to hard code strings, that's personally not an argument to me. This looks good to me if we're ever going to introduce these media types here. |
On Sun, Sep 18, 2016 at 01:07:32AM -0700, Antonio Murdaca wrote:
That's easy to handle with the copy/paste function in your editor ;). |
@runcom @wking |
On Sun, Sep 18, 2016 at 02:48:25AM -0700, xiekeyang wrote:
Yup, although there is currently no spec wording around this. #304 is
This is unclear. There is some discussion in #304, but I'd rather not
If we decide that image-spec is in the business of declaring Go
If we get out of the business of declaring Go constants, than there is |
@wking |
On Sun, Sep 18, 2016 at 08:53:34PM -0700, xiekeyang wrote:
This sounds reasonable to me.
It's probably worth waiting until #304 lands (or not) to see what the |
On Sun, Sep 18, 2016 at 09:30:17PM -0700, W. Trevor King wrote:
#304 landed, so I think the consensus is that we don't require support |
OK, I'd close the PR. |
So, do you think that we should remove the unit test on Docker media type compatibility, as https://github.com/opencontainers/image-spec/blob/master/schema/manifest_backwards_compatibility_test.go#L27 ? |
Now I'm some confusing. I read all comments in #304. I assume that all ones agree that And then, we should remove file Above is chain-reaction. |
Add compatibility matrix media types like docker image.
Image tool implementation maybe need these types for validation, like #273 done.
Signed-off-by: xiekeyang [email protected]