Fix failing lint check for deprecated x/crypto/openpgp library

This commit is contained in:
Krista LaFentres 2021-11-18 10:12:00 -06:00
parent 7aeaec9b48
commit 2fc4e06890
2 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,9 @@ import (
"log"
"strings"
// TODO: replace crypto/openpgp since it is deprecated
// https://github.com/golang/go/issues/44226
//lint:file-ignore SA1019 openpgp is deprecated but there are no good alternatives yet
"golang.org/x/crypto/openpgp"
openpgpArmor "golang.org/x/crypto/openpgp/armor"
openpgpErrors "golang.org/x/crypto/openpgp/errors"

View File

@ -9,6 +9,10 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
// TODO: replace crypto/openpgp since it is deprecated
// https://github.com/golang/go/issues/44226
//lint:file-ignore SA1019 openpgp is deprecated but there are no good alternatives yet
"golang.org/x/crypto/openpgp"
)