Skip to content

Commit 04bfe7d

Browse files
authored
Merge pull request #6490 from thaJeztah/deprecate_defaultversion
cli/command: deprecate DockerCli.DefaultVersion
2 parents 903e9b3 + 0270b2d commit 04bfe7d

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
@@ -47,7 +47,6 @@ type Cli interface {
4747
Apply(ops ...CLIOption) error
4848
config.Provider
4949
ServerInfo() ServerInfo
50-
DefaultVersion() string
5150
CurrentVersion() string
5251
ContentTrustEnabled() bool
5352
BuildKitEnabled() (bool, error)
@@ -89,6 +88,8 @@ type DockerCli struct {
8988
}
9089

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

0 commit comments

Comments
 (0)