Skip to content

[27.x backport] container: deprecate ErrNameReserved, ErrNameNotReserved, use errdefs instead#48697

Merged
thaJeztah merged 4 commits intomoby:27.xfrom
austinvazquez:cherry-pick-pr-48668-to-27.x
Oct 19, 2024
Merged

[27.x backport] container: deprecate ErrNameReserved, ErrNameNotReserved, use errdefs instead#48697
thaJeztah merged 4 commits intomoby:27.xfrom
austinvazquez:cherry-pick-pr-48668-to-27.x

Conversation

@austinvazquez
Copy link
Copy Markdown
Contributor

- What I did

- How I did it

git cherry-pick -xsS 0d36ab1875db00bcbeda0740b3a14cd3bf1ec889
git cherry-pick -xsS 0603bd9577fa84b7554fcaf3fe04db0eb649973e
git cherry-pick -xsS 0200c58c4aa764ea935ac66edf860f5963f14562
git cherry-pick -xsS 3cf90ca73f9ddff741bcc3aa50bdc387e4c13932

- Description for the changelog

container: deprecate ErrNameReserved, ErrNameNotReserved

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

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 0d36ab1)
Signed-off-by: Austin Vazquez <[email protected]>
The withTxn function takes a custom function to execute; we should not
wrap those errors as the only responsibility of this function is to
execute the given function in a transaction.

This was introduced in 6549a27, and
an oversight of me.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 0603bd9)
Signed-off-by: Austin Vazquez <[email protected]>
Follow-up to 94dea20. Change these to return
errdefs types, which could allow us to move away from the sentinel errors
defined in the package, and instead use errdefs definitions.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 0200c58)
Signed-off-by: Austin Vazquez <[email protected]>
Use errdefs definitions instead.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 3cf90ca)
Signed-off-by: Austin Vazquez <[email protected]>
@thaJeztah thaJeztah added status/2-code-review impact/deprecation kind/refactor PR's that refactor, or clean-up code area/go-sdk impact/go-sdk Noteworthy (compatibility changes) in the Go SDK labels Oct 19, 2024
@thaJeztah thaJeztah added this to the 27.4.0 milestone Oct 19, 2024
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@thaJeztah thaJeztah merged commit 3bbb3c7 into moby:27.x Oct 19, 2024
@austinvazquez austinvazquez deleted the cherry-pick-pr-48668-to-27.x branch October 19, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/go-sdk 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.

2 participants