spiegel_podman/pkg/util
Kir Kolyshkin 7f7b35356f 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>
2026-05-21 13:09:42 -07:00
..
tlsutil Implement TLS API Support 2025-09-26 09:09:54 -06:00
changes.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
changes_test.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
filters.go volume prune: match Docker default and add --all 2026-03-19 13:40:45 +01:00
filters_test.go volume prune: match Docker default and add --all 2026-03-19 13:40:45 +01:00
kube.go Kube Play - allow creating image based volumes 2024-01-24 11:55:29 +02:00
mount_opts.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
mount_opts_linux.go util: rename files to snake case 2024-03-21 11:33:02 +01:00
mount_opts_other.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
rlimit.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
utils.go Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
utils_darwin.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
utils_freebsd.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
utils_linux.go Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
utils_linux_test.go Match VT device paths to be blocked from mounting exactly 2023-01-28 05:18:40 -05:00
utils_supported.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
utils_test.go Fix .containerignore patterns with leading/trailing slashes 2026-04-01 20:19:37 +02:00
utils_unsupported.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
utils_windows.go rootless: use nsfs file handles to persist namespaces 2026-01-20 18:41:59 +01:00