mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-07 01:32:26 +01:00
16 lines
715 B
Diff
16 lines
715 B
Diff
On buildozer the error says:
|
|
failed to encrypt sops data key with pgp: gpg: WARNING: unsafe permissions on homedir '/home/buildozer/.gnupg'\ngpg: 'invalid' is not a valid long keyID
|
|
|
|
--- a/pgp/keysource_test.go
|
|
+++ b/pgp/keysource_test.go
|
|
@@ -300,7 +300,8 @@ func TestMasterKey_encryptWithGnuPG(t *testing.T) {
|
|
key := NewMasterKeyFromFingerprint("invalid")
|
|
err := key.encryptWithGnuPG([]byte("invalid"))
|
|
assert.Error(t, err)
|
|
- assert.ErrorContains(t, err, "failed to encrypt sops data key with pgp: gpg: 'invalid' is not a valid long keyID")
|
|
+ assert.ErrorContains(t, err, "failed to encrypt sops data key with pgp:")
|
|
+ assert.ErrorContains(t, err, "gpg: 'invalid' is not a valid long keyID")
|
|
})
|
|
|
|
}
|