Giter Club home page Giter Club logo

Comments (9)

mtrmac avatar mtrmac commented on July 4, 2024

The offending code is actually in https://github.com/containers/image .

Two points:

  • The error message should include the MIME type. That would allow…
  • … figuring out what is going on. The code is already supposed to fail with a bit nicer error messages (e. g. can't create OCI manifest from Docker V2 schema 1 manifest). This error message says that we don’t recognize it at all.
  • (And eventually we should just be able to convert from the old format; that is hopefully coming but not really a fix to the particular reported problem.)

from skopeo.

dustymabe avatar dustymabe commented on July 4, 2024

The offending code is actually in https://github.com/containers/image .

@mtrmac - are you saying the bug isn't in skopeo?

FYI - just for the record the commit of skopeo I was using at the time was 362bfc5

from skopeo.

mtrmac avatar mtrmac commented on July 4, 2024

@mtrmac - are you saying the bug isn't in skopeo?

Yes, skopeo copy is just https://github.com/projectatomic/skopeo/blob/master/cmd/skopeo/copy.go ; all work actually happens in the other repo. Roughly the same people are maintaining both, so it doesn’t matter that much, only if someone wanted to help debugging (https://github.com/containers/image/blob/master/oci/layout/oci_dest.go#L136 )

from skopeo.

dustymabe avatar dustymabe commented on July 4, 2024

thanks, i'll try to submit future copy issues against containers/image

from skopeo.

runcom avatar runcom commented on July 4, 2024

see containers/image#83

from skopeo.

mtrmac avatar mtrmac commented on July 4, 2024

containers/image#83 adds a generic diagnostic, is that sufficient to fix this issue? From containers/image#83 it seemed that we should add the “signed schema1” type to the switch.

from skopeo.

runcom avatar runcom commented on July 4, 2024

containers/image#83 adds a generic diagnostic, is that sufficient to fix this issue? From containers/image#83 it seemed that we should add the “signed schema1” type to the switch.

@mtrmac
the switch is meant for schemas where I suppose one day will be "convertible" to OCI v1 (I think it's just work to do)
signed schema1 isn't compatible at all and cannot be converted

from skopeo.

runcom avatar runcom commented on July 4, 2024

reopening till containers/image#83 is vendored here

from skopeo.

mtrmac avatar mtrmac commented on July 4, 2024

Sure, this will not make it work, but we already have a nicer “schema 1 is not supported” error message in that switch; if the underlying cause of the failure is that we have detected schema 1, it would be nice to use this more specific error message instead of “unrecognized MIME type”.

from skopeo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.