Skip to content

Conversation

@thaJeztah
Copy link
Member

relates to:

opts: deprecate ListOpts.Delete()

This method was added as part of a refactor in moby@1ba1138, at which time it was used to delete original values for "--host" and "--volume" after normalizing. This beccame redundant in moby@6200002, which added specialized options that used a validate function, which both validated and normalized inputs.

It's no longer used, so let's mark it deprecated so that we can remove it.

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

Go SDK: opts: deprecate ListOpts.Delete()

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

This method was added as part of a refactor in [moby@1ba1138], at which
time it was used to delete original values for "--host" and "--volume"
after normalizing. This beccame redundant in [moby@6200002], which added
specialized options that used a validate function, which both validated
and normalized inputs.

It's no longer used, so let's mark it deprecated so that we can remove it.

[moby@1ba1138]: moby/moby@1ba1138
[moby@6200002]: moby/moby@6200002

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 29.0.0 milestone Oct 13, 2025
@thaJeztah thaJeztah added 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 process/cherry-pick/28.x labels Oct 13, 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 714c82a into docker:master Oct 13, 2025
104 of 105 checks passed
@thaJeztah thaJeztah deleted the opts_deprecate_delete branch October 13, 2025 09:59
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/deprecation impact/go-sdk Noteworthy (compatibility changes) in the Go SDK kind/refactor PR's that refactor, or clean-up code process/cherry-picked status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants