Skip to content

Commit

Permalink
Merge pull request #4106 from thaJeztah/23.0_backport_fix_comments
Browse files Browse the repository at this point in the history
[23.0 backport] cli/command: ElectAuthServer: fix deprecation comment
  • Loading branch information
thaJeztah authored Mar 21, 2023
2 parents 288b6c7 + 114e17a commit 40a48e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 3 additions & 2 deletions cli/command/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ import (
"github.com/pkg/errors"
)

// ElectAuthServer returns the default registry to use
// Deprecated: use registry.IndexServer instead
// ElectAuthServer returns the default registry to use.
//
// Deprecated: use [registry.IndexServer] instead.
func ElectAuthServer(_ context.Context, _ Cli) string {
return registry.IndexServer
}
Expand Down
9 changes: 3 additions & 6 deletions cli/command/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ import (
"fmt"
"testing"

"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"

// Prevents a circular import with "github.com/docker/cli/internal/test"

. "github.com/docker/cli/cli/command"
. "github.com/docker/cli/cli/command" // Prevents a circular import with "github.com/docker/cli/internal/test"
configtypes "github.com/docker/cli/cli/config/types"
"github.com/docker/cli/internal/test"
"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)

type fakeClient struct {
Expand Down

0 comments on commit 40a48e4

Please sign in to comment.