From 2c6e15b5ab837f03d526ba01208c3270792c3d26 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Thu, 9 Feb 2023 09:13:32 -0500 Subject: [PATCH] Run codespell on codebase Signed-off-by: Daniel J Walsh --- cmd/skopeo/generate_sigstore_key_test.go | 2 +- cmd/skopeo/utils.go | 2 +- contrib/skopeoimage/README.md | 2 +- systemtest/040-local-registry-auth.bats | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/skopeo/generate_sigstore_key_test.go b/cmd/skopeo/generate_sigstore_key_test.go index a676d3ee..c264f1bb 100644 --- a/cmd/skopeo/generate_sigstore_key_test.go +++ b/cmd/skopeo/generate_sigstore_key_test.go @@ -62,7 +62,7 @@ func TestGenerateSigstoreKey(t *testing.T) { // we have to trigger a write failure. // Success - // Just a smoke-test, useability of the keys is tested in the generate implementation. + // Just a smoke-test, usability of the keys is tested in the generate implementation. dir := t.TempDir() prefix := filepath.Join(dir, "prefix") passphraseFile := filepath.Join(dir, "passphrase") diff --git a/cmd/skopeo/utils.go b/cmd/skopeo/utils.go index 7a2d59b4..3fb0fab9 100644 --- a/cmd/skopeo/utils.go +++ b/cmd/skopeo/utils.go @@ -44,7 +44,7 @@ func noteCloseFailure(err error, description string, closeErr error) error { if err == nil { return fmt.Errorf("%s: %w", description, closeErr) } - // In this case we prioritize the primary error for use with %w; closeErr is usually less relevant, or might be a consequence of the primary erorr. + // In this case we prioritize the primary error for use with %w; closeErr is usually less relevant, or might be a consequence of the primary error. return fmt.Errorf("%w (%s: %v)", err, description, closeErr) } diff --git a/contrib/skopeoimage/README.md b/contrib/skopeoimage/README.md index 3bdbfb76..885f3c86 100644 --- a/contrib/skopeoimage/README.md +++ b/contrib/skopeoimage/README.md @@ -1,6 +1,6 @@ [comment]: <> (***ATTENTION*** ***WARNING*** ***ALERT*** ***CAUTION*** ***DANGER***) [comment]: <> () -[comment]: <> (ANY changes made to this file, once commited/merged must) +[comment]: <> (ANY changes made to this file, once committed/merged must) [comment]: <> (be manually copy/pasted -in markdown- into the description) [comment]: <> (field on Quay at the following locations:) [comment]: <> () diff --git a/systemtest/040-local-registry-auth.bats b/systemtest/040-local-registry-auth.bats index 29c65597..a8a9f26c 100644 --- a/systemtest/040-local-registry-auth.bats +++ b/systemtest/040-local-registry-auth.bats @@ -16,7 +16,7 @@ function setup() { _cred_dir=$TESTDIR/credentials # It is important to change XDG_RUNTIME_DIR only after we start the registry, otherwise it affects the path of $XDG_RUNTIME_DIR/netns maintained by Podman, - # making it imposible to clean up after ourselves. + # making it impossible to clean up after ourselves. export XDG_RUNTIME_DIR=$_cred_dir mkdir -p $_cred_dir/containers # Remove old/stale cred file