From fe059ec84c01eb6171cf70b8212da37431743b9a Mon Sep 17 00:00:00 2001 From: Patrick Zheng Date: Fri, 2 Feb 2024 10:00:42 +0800 Subject: [PATCH] update Signed-off-by: Patrick Zheng --- cmd/notation/login.go | 2 +- cmd/notation/logout.go | 2 +- cmd/notation/registry.go | 2 +- internal/auth/credentials.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/notation/login.go b/cmd/notation/login.go index 5bae34375..e1a2bb49c 100644 --- a/cmd/notation/login.go +++ b/cmd/notation/login.go @@ -27,7 +27,7 @@ import ( "github.com/notaryproject/notation/internal/cmd" "github.com/spf13/cobra" "golang.org/x/term" - credentials "oras.land/oras-go/v2/registry/remote/credentials" + "oras.land/oras-go/v2/registry/remote/credentials" ) const urlDocHowToAuthenticate = "https://notaryproject.dev/docs/how-to/registry-authentication/" diff --git a/cmd/notation/logout.go b/cmd/notation/logout.go index ad46de462..6a89c4889 100644 --- a/cmd/notation/logout.go +++ b/cmd/notation/logout.go @@ -21,7 +21,7 @@ import ( "github.com/notaryproject/notation/internal/auth" "github.com/notaryproject/notation/internal/cmd" "github.com/spf13/cobra" - credentials "oras.land/oras-go/v2/registry/remote/credentials" + "oras.land/oras-go/v2/registry/remote/credentials" ) type logoutOpts struct { diff --git a/cmd/notation/registry.go b/cmd/notation/registry.go index 573a885fb..d4c748a36 100644 --- a/cmd/notation/registry.go +++ b/cmd/notation/registry.go @@ -28,7 +28,7 @@ import ( "oras.land/oras-go/v2/registry" "oras.land/oras-go/v2/registry/remote" "oras.land/oras-go/v2/registry/remote/auth" - credentials "oras.land/oras-go/v2/registry/remote/credentials" + "oras.land/oras-go/v2/registry/remote/credentials" ) // inputType denotes the user input type diff --git a/internal/auth/credentials.go b/internal/auth/credentials.go index 354418e7f..9f04a6eeb 100644 --- a/internal/auth/credentials.go +++ b/internal/auth/credentials.go @@ -17,7 +17,7 @@ import ( "fmt" "github.com/notaryproject/notation-go/dir" - credentials "oras.land/oras-go/v2/registry/remote/credentials" + "oras.land/oras-go/v2/registry/remote/credentials" ) // NewCredentialsStore returns a new credentials store from the settings in the