Skip to content

Commit 3a1f602

Browse files
committed
Switch to github.com/ProtonMail/go-crypto/openpgp
As `golang.org/x/crypto/openpgp` has been deprecated (see golang/go#44226 for details), and this is the most active/used fork. Signed-off-by: Hidde Beydals <[email protected]>
1 parent d976c90 commit 3a1f602

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

controllers/imageupdateautomation_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ import (
3232
gogit "github.com/go-git/go-git/v5"
3333
libgit2 "github.com/libgit2/git2go/v31"
3434

35+
"github.com/ProtonMail/go-crypto/openpgp"
3536
securejoin "github.com/cyphar/filepath-securejoin"
3637
"github.com/go-git/go-git/v5/config"
3738
"github.com/go-git/go-git/v5/plumbing"
3839
"github.com/go-git/go-git/v5/plumbing/object"
3940
"github.com/go-logr/logr"
40-
"golang.org/x/crypto/openpgp"
4141
corev1 "k8s.io/api/core/v1"
4242
apimeta "k8s.io/apimachinery/pkg/api/meta"
4343
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -59,7 +59,7 @@ import (
5959
"github.com/fluxcd/pkg/runtime/metrics"
6060
"github.com/fluxcd/pkg/runtime/predicates"
6161
sourcev1 "github.com/fluxcd/source-controller/api/v1beta1"
62-
git "github.com/fluxcd/source-controller/pkg/git"
62+
"github.com/fluxcd/source-controller/pkg/git"
6363
gitstrat "github.com/fluxcd/source-controller/pkg/git/strategy"
6464

6565
imagev1 "github.com/fluxcd/image-automation-controller/api/v1alpha2"

controllers/update_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ import (
2020
"bytes"
2121
"context"
2222
"fmt"
23-
"golang.org/x/crypto/openpgp"
24-
"golang.org/x/crypto/openpgp/armor"
2523
"io/ioutil"
2624
"math/rand"
2725
"net/url"
@@ -31,6 +29,8 @@ import (
3129
"strings"
3230
"time"
3331

32+
"github.com/ProtonMail/go-crypto/openpgp"
33+
"github.com/ProtonMail/go-crypto/openpgp/armor"
3434
"github.com/go-git/go-billy/v5/memfs"
3535
"github.com/go-git/go-git/v5"
3636
"github.com/go-git/go-git/v5/config"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.15
55
replace github.com/fluxcd/image-automation-controller/api => ./api
66

77
require (
8+
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7
89
github.com/cyphar/filepath-securejoin v0.2.2
910
github.com/fluxcd/image-automation-controller/api v0.9.1
1011
// If you bump this, change REFLECTOR_VER in the Makefile to match
@@ -25,7 +26,6 @@ require (
2526
github.com/onsi/gomega v1.10.2
2627
github.com/otiai10/copy v1.2.0
2728
github.com/spf13/pflag v1.0.5
28-
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b
2929
k8s.io/api v0.20.4
3030
k8s.io/apimachinery v0.20.4
3131
k8s.io/client-go v0.20.4

0 commit comments

Comments
 (0)