spiegel_podman/pkg/trust
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
..
testdata Add support for showing keyPaths in (podman image trust show) 2022-08-25 01:52:59 +02:00
policy.go Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
policy_test.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
registries.go Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
registries_test.go Add unit tests for loadAndMergeConfig 2026-05-17 16:07:48 -07:00
trust.go Preallocate a slice 2026-02-11 11:41:10 -08:00
trust_test.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00