Skip to content

Commit 61b9fd4

Browse files
authored
Merge pull request #6491 from thaJeztah/28.x_backport_deprecate_defaultversion
[28.x backport] cli/command: deprecate DockerCli.DefaultVersion
2 parents 2ef1b4e + e9c189e commit 61b9fd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/command/cli.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ type Cli interface {
4848
Apply(ops ...CLIOption) error
4949
config.Provider
5050
ServerInfo() ServerInfo
51-
DefaultVersion() string
5251
CurrentVersion() string
5352
BuildKitEnabled() (bool, error)
5453
ContextStore() store.Store
@@ -89,6 +88,8 @@ type DockerCli struct {
8988
}
9089

9190
// DefaultVersion returns [api.DefaultVersion].
91+
//
92+
// Deprecated: this function is no longer used and will be removed in the next release.
9293
func (*DockerCli) DefaultVersion() string {
9394
return api.DefaultVersion
9495
}

0 commit comments

Comments
 (0)