spiegel_podman/pkg/api/handlers
Kir Kolyshkin a94d273a8f
Replace os.Is* error checks with errors.Is
Using os.Is{Exist,NotExist,Permission} checks is not recommended in the
new code (see official documentation). While using it in the existing
code is OK, it may still result in a subtle errors later (for a specific
example of that, see [1]).

Replace those with errors.Is.

Generated by:

	gofmt -r 'os.IsExist(a) -> errors.Is(a, os.ErrExist)' -w .
	gofmt -r 'os.IsNotExist(a) -> errors.Is(a, os.ErrNotExist)' -w .
	gofmt -r 'os.IsPermission(a) -> errors.Is(a, os.ErrPermission)' -w .
	goimports -w .
	git diff vendor test/tools/vendor | patch -p1 -R

[1]: https://github.com/opencontainers/runc/pull/5061
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 7f7b35356f)

[Added extra replacements manually that were only in the 5.8 tree]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-06-04 19:38:16 +02:00
..
compat Replace os.Is* error checks with errors.Is 2026-06-04 19:38:16 +02:00
libpod use chrootarchive over plain archive package 2026-04-09 14:23:52 +02:00
swagger Add DELETE /libpod/quadlets 2026-02-05 14:55:46 +01:00
types Bump Go module to v5 2024-02-08 09:35:39 -05:00
utils Add POST /libpod/quadlets 2026-02-05 14:53:34 +01:00
decoder.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
types.go Add ulimits to podman update API 2026-02-06 15:36:47 -05:00