spiegel_podman/pkg
Atishyy27 648f91e9c6
fix(remote): keep '=' in a prune filter value
ImageEngine.Prune split each --filter on every '=' and kept everything after the
first as separate values, so a filter whose value itself contains '=' was torn
apart. podman-image-prune.1.md documents label=key=value and gives
'--filter label=version=1.0' as an example, which produced

  filters["label"] = ["version", "1.0"]

instead of ["version=1.0"]. libimage turns every element into its own label
filter and MatchLabelFilters cuts each one on '=' itself, so the request became
'has a label key version' AND 'has a label key 1.0'. Nothing carries a key named
1.0, so the prune matched no images and silently removed nothing.

Local podman is unaffected: the abi path passes opts.Filter through untouched.
This is remote-only, and it diverges from both siblings -- List uses
SplitN(filter, "=", 2) and Events validates then rejoins with strings.Join.
Prune now mirrors List.

The existing e2e case only used 'label=abc', a bare key, which survives the old
split by accident; added one that uses a key=value label and checks the
non-matching image is still there afterwards.

Signed-off-by: Atishyy27 <sethatishayjain@gmail.com>
2026-08-26 22:21:58 +05:30
..
annotations Performance: Use delayed regex compilation 2026-08-14 21:14:17 +05:30
api Merge pull request #29628 from mehrdadbn9/fix/29627-stats-nil-pointer 2026-08-24 15:43:09 +02:00
auth api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
autoupdate RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
bindings pkg/bindings: keep auth fields out of the query string 2026-08-24 23:43:27 +05:30
channel pkg/channel: add tests for the channel WriteCloser 2026-07-25 17:11:50 +05:30
checkpoint checkpoint: close rootfs tar stream after use 2026-06-24 12:32:18 +03:00
copy pkg/copy: add tests for ParseSourceAndDestination 2026-06-24 22:25:26 +05:30
criu deps: bump go-criu to v8.2.0 2026-06-09 11:51:46 -07:00
ctime update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
domain fix(remote): keep '=' in a prune filter value 2026-08-26 22:21:58 +05:30
emulation fix some missing scanner error checks 2026-06-30 10:32:32 +02:00
env run modernize -fix ./... 2025-09-10 16:17:04 +02:00
errorhandling pkg/errorhandling: remove deadcode 2025-06-26 19:37:14 +02:00
farm farm: handle tagged --tag references on build 2026-08-19 12:44:54 +05:30
fileserver RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
inspect swagger: fix deprecated alias annotations and model name collisions 2026-08-10 22:14:47 +05:30
k8s.io added errorlint 2026-08-14 01:35:03 +05:30
logiface run modernize -fix ./... 2025-09-10 16:17:04 +02:00
lookup Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
machine Merge pull request #28447 from jude-ruben/fix/machine-image-permissions 2026-08-24 15:07:36 -04:00
namespaces pkg/namespaces: add tests for UsernsMode and NetworkMode 2026-06-30 16:50:07 +05:30
parallel RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
pidhandle added errorlint 2026-08-14 01:35:03 +05:30
ps Performance: Use delayed regex compilation 2026-08-14 21:14:17 +05:30
rctl added errorlint 2026-08-14 01:35:03 +05:30
rootless rootless: fix heap-buffer-overflow in preexec hooks 2026-07-29 10:27:49 +03:00
seccomp pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
selinux bump selinux to v1.15.1, use SetProcessKind 2026-06-02 11:18:34 -07:00
signal enable gofumpt formatter 2025-11-11 12:32:46 +01:00
specgen specgen: ensure keep-id overrides image USER 2026-08-25 22:26:31 +05:30
specgenutil specgen: move log_path handling over to the server 2026-06-03 09:22:50 +05:30
specgenutilexternal pkg/specgenutilexternal: add tests for FindMountType 2026-07-08 17:46:55 +05:30
syncmap Add syncmap package and use it for graph stop/remove 2025-02-17 14:32:34 -05:00
systemd Performance: Use delayed regex compilation 2026-08-14 21:14:17 +05:30
terminal Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
trust pkg/trust: prevent panic on malformed GPG uid/pub lines 2026-08-13 23:51:56 +05:30
util pkg/util: add tests for ParseRestartPolicy 2026-08-20 20:54:42 +05:30