spiegel_podman/pkg/api/handlers/compat
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
..
auth.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
changes.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
containers.go Merge pull request #14673 from idleroamer/fix-network-inspect-main 2022-07-07 11:55:30 +00:00
containers_archive.go libpod: switch to golang native error wrapping 2022-07-05 16:06:32 +02:00
containers_attach.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
containers_create.go libpod: switch to golang native error wrapping 2022-07-05 16:06:32 +02:00
containers_export.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
containers_logs.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
containers_pause.go bump go module to version 4 2022-01-18 12:47:07 +01:00
containers_prune.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
containers_restart.go libpod: switch to golang native error wrapping 2022-07-05 16:06:32 +02:00
containers_start.go bump go module to version 4 2022-01-18 12:47:07 +01:00
containers_stats.go Adjust for common bump 2026-01-28 10:48:05 -05:00
containers_stop.go Podman stop --filter flag 2022-07-26 13:25:36 -04:00
containers_top.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
containers_unpause.go bump go module to version 4 2022-01-18 12:47:07 +01:00
events.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
exec.go use c/common code for resize and CopyDetachable 2022-07-06 16:57:07 +02:00
images.go Add build-tagged splits for libimage-dependent code 2026-03-30 15:13:31 -04:00
images_build.go Fix podman-remote build never utilizing cache 2026-03-30 15:13:44 -04:00
images_history.go Add sha256: to images history id for docker compatibility 2026-03-30 15:13:38 -04:00
images_prune.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
images_push.go Compat API: unify pull/push and add missing progress info 2022-07-26 14:27:23 -04:00
images_remove.go libpod: switch to golang native error wrapping 2022-07-05 16:06:32 +02:00
images_save.go golangci-lint: enable nolintlint 2022-06-14 16:29:42 +02:00
images_search.go Set TLSVerify=true by default for API endpoints 2022-07-26 14:44:05 -04:00
images_tag.go Add build-tagged splits for libimage-dependent code 2026-03-30 15:13:31 -04:00
info.go Adjust for common bump 2026-01-28 10:48:05 -05:00
networks.go Fix compilation errors for v4.4.1-rhel compatibility 2026-03-30 14:52:52 -04:00
ping.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
resize.go use c/common code for resize and CopyDetachable 2022-07-06 16:57:07 +02:00
secrets.go libpod: switch to golang native error wrapping 2022-07-05 16:06:32 +02:00
system.go Adjust for common bump 2026-01-28 10:48:05 -05:00
types.go V2 verify JSON output is consistent and doesn't drift 2020-05-28 16:20:29 -07:00
unsupported.go bump go module to version 4 2022-01-18 12:47:07 +01:00
version.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
volumes.go Adjust for common bump 2026-01-28 10:48:05 -05:00