1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

Fix typos.

Signed-off-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Felix Fontein
2023-11-02 22:23:10 +01:00
parent 573253a0c6
commit 09e147f2fb
6 changed files with 8 additions and 8 deletions

View File

@@ -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",

View File

@@ -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]

View File

@@ -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)
}

View File

@@ -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)
})

View File

@@ -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 {

View File

@@ -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"),