mirror of https://github.com/docker/cli.git
Merge pull request #4106 from thaJeztah/23.0_backport_fix_comments
[23.0 backport] cli/command: ElectAuthServer: fix deprecation comment
This commit is contained in:
commit
40a48e4154
|
@ -21,8 +21,9 @@ import (
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ElectAuthServer returns the default registry to use
|
// ElectAuthServer returns the default registry to use.
|
||||||
// Deprecated: use registry.IndexServer instead
|
//
|
||||||
|
// Deprecated: use [registry.IndexServer] instead.
|
||||||
func ElectAuthServer(_ context.Context, _ Cli) string {
|
func ElectAuthServer(_ context.Context, _ Cli) string {
|
||||||
return registry.IndexServer
|
return registry.IndexServer
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,16 +6,13 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"gotest.tools/v3/assert"
|
. "github.com/docker/cli/cli/command" // Prevents a circular import with "github.com/docker/cli/internal/test"
|
||||||
is "gotest.tools/v3/assert/cmp"
|
|
||||||
|
|
||||||
// Prevents a circular import with "github.com/docker/cli/internal/test"
|
|
||||||
|
|
||||||
. "github.com/docker/cli/cli/command"
|
|
||||||
configtypes "github.com/docker/cli/cli/config/types"
|
configtypes "github.com/docker/cli/cli/config/types"
|
||||||
"github.com/docker/cli/internal/test"
|
"github.com/docker/cli/internal/test"
|
||||||
"github.com/docker/docker/api/types"
|
"github.com/docker/docker/api/types"
|
||||||
"github.com/docker/docker/client"
|
"github.com/docker/docker/client"
|
||||||
|
"gotest.tools/v3/assert"
|
||||||
|
is "gotest.tools/v3/assert/cmp"
|
||||||
)
|
)
|
||||||
|
|
||||||
type fakeClient struct {
|
type fakeClient struct {
|
||||||
|
|
Loading…
Reference in New Issue