spiegel_podman/pkg/api/handlers
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
..
compat Fix podman-remote build never utilizing cache 2026-03-30 15:13:44 -04:00
libpod Use default_ulimits field in containers.conf 2026-03-30 15:13:37 -04:00
swagger podman image scp remote support & podman image scp tagging 2022-06-28 08:54:19 -04:00
types bump go module to version 4 2022-01-18 12:47:07 +01:00
utils Add build-tagged splits for libimage-dependent code 2026-03-30 15:13:31 -04:00
decoder.go pkg/api: do not register decoder in endpoint handler 2022-04-29 14:06:54 +02:00
types.go Add build-tagged splits for libimage-dependent code 2026-03-30 15:13:31 -04:00
types_local.go Add build-tagged splits for libimage-dependent code 2026-03-30 15:13:31 -04:00