Previously, for podman-remote builds, the compat handler set
`OutputFormat` from the client only, with no default. When the client
didn’t send `outputformat`, Buildah got `""` but still produced OCI
images. Cache lookup then compared the candidate’s OCI manifest type to
`""` and rejected it. Fix this by checking if `query.OutputFormat` is
empty, then if so set `format = buildah.OCIv1ImageManifest` before
calling Buildah, so cache checks match the OCI images that are actually
built.
Also fix a bug so podman-remote is correctly sent the `layers` option
even when it's false (by whatever means). This makes the bindings match
the behavior of a regular `podman build`.
Produced with significant assistance from AI: Cursor <Auto>
Signed-off-by: Chris Evich <cevich@redhat.com>