diff --git a/cmd/sops/main.go b/cmd/sops/main.go index 0ccbb95ba..2d5cea4db 100644 --- a/cmd/sops/main.go +++ b/cmd/sops/main.go @@ -390,7 +390,7 @@ func main() { }, cli.StringSliceFlag{ Name: "hc-vault-transit", - Usage: "the full vault path to the key used to encrypt/decrypt. Make you choose and configure a key with encrption/decryption enabled (e.g. 'https://vault.example.org:8200/v1/transit/keys/dev'). Can be specified more than once", + Usage: "the full vault path to the key used to encrypt/decrypt. Make you choose and configure a key with encryption/decryption enabled (e.g. 'https://vault.example.org:8200/v1/transit/keys/dev'). Can be specified more than once", }, cli.StringSliceFlag{ Name: "age", diff --git a/functional-tests/src/lib.rs b/functional-tests/src/lib.rs index e5e92f799..98881d4ee 100644 --- a/functional-tests/src/lib.rs +++ b/functional-tests/src/lib.rs @@ -508,7 +508,7 @@ b: ba"# .expect("Error running sops"); assert!(!output.status .success(), - "SOPS succeeded decrypting a file with a missing decrytion key"); + "SOPS succeeded decrypting a file with a missing decryption key"); } #[test] diff --git a/hcvault/keysource_test.go b/hcvault/keysource_test.go index 5f548caac..54eb2fcb0 100644 --- a/hcvault/keysource_test.go +++ b/hcvault/keysource_test.go @@ -85,7 +85,7 @@ func TestMain(m *testing.M) { code = m.Run() } - // This can't be deferred, as os.Exit simpy does not care + // This can't be deferred, as os.Exit simply does not care if err := pool.Purge(resource); err != nil { logger.Fatalf("could not purge resource: %s", err) } diff --git a/kms/keysource_test.go b/kms/keysource_test.go index c9898d395..a2bb76b3f 100644 --- a/kms/keysource_test.go +++ b/kms/keysource_test.go @@ -101,7 +101,7 @@ func TestMain(m *testing.M) { code = m.Run() } - // This can't be deferred, as os.Exit simpy does not care + // This can't be deferred, as os.Exit simply does not care if err := pool.Purge(resource); err != nil { logger.Fatalf("could not purge resource: %s", err) } @@ -556,7 +556,7 @@ func Test_stsSessionName(t *testing.T) { } got, err := stsSessionName() assert.Error(t, err) - assert.ErrorContains(t, err, "failed to construct STS session nam") + assert.ErrorContains(t, err, "failed to construct STS session name") assert.Empty(t, got) }) diff --git a/pgp/keysource.go b/pgp/keysource.go index 7c14ff265..a95c4d008 100644 --- a/pgp/keysource.go +++ b/pgp/keysource.go @@ -240,7 +240,7 @@ func (r SecRing) ApplyToMasterKey(key *MasterKey) { // errSet is a collection of captured errors. type errSet []error -// Error joins the errors into a "; " seperated string. +// Error joins the errors into a "; " separated string. func (e errSet) Error() string { str := make([]string, len(e)) for i, err := range e { @@ -623,7 +623,7 @@ func gnuPGHome(customPath string) string { } // shortenFingerprint returns the short ID of the given fingerprint. -// This is mostly used for compatability reasons, as older versions of GnuPG +// This is mostly used for compatibility reasons, as older versions of GnuPG // do not always like long IDs. func shortenFingerprint(fingerprint string) string { if offset := len(fingerprint) - 16; offset > 0 { diff --git a/shamir/shamir_test.go b/shamir/shamir_test.go index 7719ed01f..18727a89d 100644 --- a/shamir/shamir_test.go +++ b/shamir/shamir_test.go @@ -54,7 +54,7 @@ func TestCombine_invalid(t *testing.T) { t.Fatalf("should err") } - // Mis-match in length + // Mismatch in length parts := [][]byte{ []byte("foo"), []byte("ba"),