spiegel_podman/pkg/api
Chris Evich 9ab7b493c1
Fix podman-remote build never utilizing cache
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>
2026-03-30 15:13:44 -04:00
..
handlers Fix podman-remote build never utilizing cache 2026-03-30 15:13:44 -04:00
server Use 8k buffer to help clients w/ broken parsing 2022-08-10 16:46:05 -04:00
types Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
Makefile Remove GO111MODULES use 2022-05-17 13:42:03 -07:00
tags.yaml [CI:DOCS] Set all operation id to be compatibile 2021-04-05 19:54:30 -07:00