Skip to content

Conversation

@thaJeztah
Copy link
Member


relates to:

cli/command: deprecate DockerCli.Apply

The Apply method was added when CLI options for constructing the CLI were rewritten into functional options in cli@7f207f3. There was no mention in the pull request of this method specifically, and this may have been related to work being done elsewhere on compose-on-kubernetes or the compose-cli plugin that may have needed options to modify the CLI config after it was already initialized.

The CLI itself no longer depends on this method since cli@133279f, and the only known consumer (docker compose) no longer needs it since cli@2711800 and cli@048e931.

This patch deprecates the method with the intent to remove it in a future release.

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

Go SDK: cli/command: deprecate `DockerCli.Apply`. This method is no longer used and will be removed in the next release if there are no remaining uses.

- A picture of a cute animal (not mandatory but encouraged)

The Apply method was added when CLI options for constructing the CLI were
rewritten into functional options in [cli@7f207f3]. There was no mention
in the pull request of this method specifically, and this may have been
related to work being done elsewhere on compose-on-kubernetes or the
compose-cli plugin that may have needed options to modify the CLI config
after it was already initialized.

The CLI itself no longer depends on this method since [cli@133279f], and
the only known consumer (docker compose) no longer needs it since [cli@2711800]
and [cli@048e931].

This patch deprecates the method with the intent to remove it in a future
release.

[cli@7f207f3]: docker@7f207f3
[cli@133279f]: docker@133279f
[cli@2711800]: docker@2711800
[cli@048e931]: docker@048e931

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 24bfedf)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added this to the 28.5.0 milestone Sep 25, 2025
@thaJeztah thaJeztah added impact/changelog impact/deprecation status/2-code-review kind/refactor PR's that refactor, or clean-up code area/go-sdk Changes affecting the Go SDK impact/go-sdk Noteworthy (compatibility changes) in the Go SDK labels Sep 25, 2025
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@vvoland vvoland merged commit c28ec0e into docker:28.x Sep 25, 2025
101 of 102 checks passed
@thaJeztah thaJeztah deleted the 28.x_backport_deprecate_apply branch September 25, 2025 12:31
jakobmoellerdev pushed a commit to open-component-model/ocm that referenced this pull request Oct 8, 2025
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

The PR removes the usage of the deprecated `DockerCli.Apply`.
See also: docker/cli#6497

#### Which issue(s) this PR is related to

This PR is a prerequisite for #1634.

Signed-off-by: Ilya Khandamirov <ilya.khandamirov@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/go-sdk Changes affecting the Go SDK impact/changelog impact/deprecation impact/go-sdk Noteworthy (compatibility changes) in the Go SDK kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants