spiegel_podman/cmd
Salih Muhammed 20eae39b13
Only suggest --replace for commands that have the flag
formatError appended "or use --replace to instruct Podman to do so" to
every error wrapping storage.ErrDuplicateName, even for commands like
"podman manifest create" that have no --replace flag, telling users to
use a flag that does not exist.

Resolve the invoked command via ExecuteContextC and only add the hint
when that command actually defines a --replace flag.

Fixes: #24537
Signed-off-by: Salih Muhammed <root@lr0.org>
2026-07-03 01:35:16 +03:00
..
podman Only suggest --replace for commands that have the flag 2026-07-03 01:35:16 +03:00
podman-mac-helper Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
podman-testing Fix staticcheck SA4023 warnings in call.go and sign.go 2026-06-12 09:53:20 +02:00
podman-wslkerninst RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
quadlet Use atomic file writer for quadlet unit files 2026-06-29 22:23:57 +02:00
rootlessport Clean up outdated slirp4netns references in comments 2026-04-13 09:05:09 -04:00
winpath Fix GOOS=windows prealloc linter warnings 2026-02-11 11:41:11 -08:00