Closed burgerdev closed 3 weeks ago
@utam0k would it break youki if we just allow to parse all fields on all platforms?
It comes to me that, can youki be compiled on MacOS which you're using. could you have a try ? thx @burgerdev
If it helps, sure. Do you mean compiling natively, or cross-compiling? Native darwin builds would not make too much sense, would they? Also, the docs state that Linux is required: https://github.com/containers/youki?tab=readme-ov-file#-getting-started.
@utam0k would it break youki if we just allow to parse all fields on all platforms?
I don't have MacOS but I don't think it would break youki.
Some structs in the runtime spec are conditionally compiled based on the target platform (e.g. PosixRlimitType). If you use the oci-spec library in a Windows or MacOS binary, these definitions are absent and some spec-conforming objects can't be parsed.
This does not matter when, say, building a container runtime, because the compiled binary runs on the target platform. However, I believe that the following use cases should be supported by the spec library: