Skip to content

Commit

Permalink
updated dependency oras-credential-go to oras-go
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Feb 1, 2024
1 parent 5f539ab commit 6774856
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/notation/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
"github.com/notaryproject/notation-go/log"
"github.com/notaryproject/notation/internal/auth"
"github.com/notaryproject/notation/internal/cmd"
credentials "github.com/oras-project/oras-credentials-go"
"github.com/spf13/cobra"
"golang.org/x/term"
credentials "oras.land/oras-go/v2/registry/remote/credentials"
)

const urlDocHowToAuthenticate = "https://notaryproject.dev/docs/how-to/registry-authentication/"
Expand Down
2 changes: 1 addition & 1 deletion cmd/notation/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

"github.com/notaryproject/notation/internal/auth"
"github.com/notaryproject/notation/internal/cmd"
credentials "github.com/oras-project/oras-credentials-go"
"github.com/spf13/cobra"
credentials "oras.land/oras-go/v2/registry/remote/credentials"
)

type logoutOpts struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/notation/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import (
notationauth "github.com/notaryproject/notation/internal/auth"
"github.com/notaryproject/notation/internal/httputil"
"github.com/notaryproject/notation/pkg/configutil"
credentials "github.com/oras-project/oras-credentials-go"
"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"
)

// inputType denotes the user input type
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require (
github.com/notaryproject/notation-go v1.1.1-0.20240201073933-4606472ebdcb
github.com/opencontainers/go-digest v1.0.0
github.com/opencontainers/image-spec v1.1.0-rc6
github.com/oras-project/oras-credentials-go v0.3.1
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
Expand Down
2 changes: 1 addition & 1 deletion internal/auth/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"fmt"

"github.com/notaryproject/notation-go/dir"
credentials "github.com/oras-project/oras-credentials-go"
credentials "oras.land/oras-go/v2/registry/remote/credentials"
)

// NewCredentialsStore returns a new credentials store from the settings in the
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (

"github.com/notaryproject/notation-go/log"
"github.com/notaryproject/notation/internal/trace"
credentialstrace "github.com/oras-project/oras-credentials-go/trace"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
credentialstrace "oras.land/oras-go/v2/registry/remote/credentials/trace"
)

// SignerFlagOpts cmd opts for using cmd.GetSigner
Expand Down

0 comments on commit 6774856

Please sign in to comment.