spiegel_podman/pkg
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
..
annotations fix a number of godot issues 2022-03-22 13:04:35 +01:00
api Fix podman-remote build never utilizing cache 2026-03-30 15:13:44 -04:00
auth pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
autoupdate Add build-tagged splits for libimage-dependent code 2026-03-30 15:13:31 -04:00
bindings Fix podman-remote build never utilizing cache 2026-03-30 15:13:44 -04:00
channel pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
checkpoint Add build-tagged splits for libimage-dependent code 2026-03-30 15:13:31 -04:00
copy pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
criu Fix protobuf registration conflict by removing go-criu/v5 dependency 2026-03-30 15:13:31 -04:00
ctime golangci-lint: enable nolintlint 2022-06-14 16:29:42 +02:00
domain Fix podman-remote run --attach stdin to show container ID 2026-03-30 15:13:43 -04:00
env pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
errorhandling libpod/runtime: switch to golang native error wrapping 2022-07-04 15:39:00 +02:00
inspect pkg/inspect: remove unused ImageResult type 2022-05-24 16:07:39 +02:00
k8s.io Fix spelling "read only" -> "read-only" 2022-07-02 08:37:43 +02:00
lookup enable gocritic linter 2022-04-26 18:12:22 +02:00
machine check memory test based on range 2022-08-10 16:46:05 -04:00
namespaces Fix spelling "setup" -> "set up" and similar 2022-06-22 18:39:21 +02:00
parallel pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
ps libpod: switch to golang native error wrapping 2022-07-05 16:06:32 +02:00
rootless Fix compilation errors for v4.4.1-rhel compatibility 2026-03-30 14:52:52 -04:00
rootlessport go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
seccomp pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
servicereaper go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
signal Implement CatchAll and StopCatch in signal_common.go 2022-06-27 13:27:12 +01:00
specgen Use new secret store API 2026-03-30 15:13:42 -04:00
specgenutil Use default_ulimits field in containers.conf 2026-03-30 15:13:37 -04:00
systemd podman generate systemd --new: allow -h hostname 2022-08-10 16:46:05 -04:00
terminal move golang.org/x/crypto/ssh/terminal to golang.org/x/term 2022-04-22 12:40:52 +02:00
timetype enable gocritic linter 2022-04-26 18:12:22 +02:00
trust Preserve all unknown PolicyRequirement fields on (podman image trust set) 2022-10-25 23:31:38 +02:00
util Only prevent VTs to be mounted inside privileged systemd containers 2026-03-30 15:13:41 -04:00