spiegel_podman/pkg/bindings/images
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
..
build.go Replace os.Is* error checks with errors.Is 2026-06-04 19:38:16 +02:00
build_test.go Convert additional build context paths on Windows 2024-07-29 17:43:36 +02:00
build_unix.go pkg/bindings/images: fix linter warning on Darwin 2025-03-31 12:27:55 -07:00
build_windows.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
diff.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
images.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
pull.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
push.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
rm.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types.go prune: support clearing build cache using CleanCacheMount 2024-09-05 10:40:07 -07:00
types_diff_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types_exists_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types_export_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types_get_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types_history_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types_import_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types_list_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types_load_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types_prune_options.go prune: support clearing build cache using CleanCacheMount 2024-09-05 10:40:07 -07:00
types_pull_options.go Allow podman pull to specify --retry and --retry-delay 2024-02-17 07:37:26 -05:00
types_push_options.go Add support for podman push --retry --retry-delay 2024-02-29 10:20:21 -05:00
types_remove_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types_scp_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types_search_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types_tag_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types_tree_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types_untag_options.go Bump Go module to v5 2024-02-08 09:35:39 -05:00