The Wayback Machine - https://web.archive.org/web/20250722030218/https://github.com/moby/moby/pull/50456
Skip to content

pkg/idtools: remove deprecated functions and types #50456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2025

Conversation

thaJeztah
Copy link
Member

Remove;

  • MkdirAllAndChown
  • MkdirAndChown
  • MkdirAllAndChownNew
  • GetRootUIDGID
  • FromUserIdentityMapping
  • ToUserIdentityMapping
  • CurrentIdentity
  • IdentityMapping
  • Identity.Chown
  • IDMap

Also remove the temporary consts that were previously in use by BuildKit;

  • SeTakeOwnershipPrivilege
  • ContainerAdministratorSidString
  • ContainerUserSidString

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

Go SDK: remove deprecated pkg/idtools package

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

@thaJeztah thaJeztah added this to the 29.0.0 milestone Jul 20, 2025
@thaJeztah thaJeztah added status/2-code-review impact/deprecation 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 Jul 20, 2025
@thaJeztah thaJeztah force-pushed the idtools_rm_deprecated branch from 3be77e9 to 866a02b Compare July 20, 2025 19:03
Remove;

- `MkdirAllAndChown`
- `MkdirAndChown`
- `MkdirAllAndChownNew`
- `GetRootUIDGID`
- `FromUserIdentityMapping`
- `ToUserIdentityMapping`
- `CurrentIdentity`
- `IdentityMapping`
- `Identity.Chown`
- `IDMap`

Also remove the temporary consts that were previously in use by BuildKit;

- `SeTakeOwnershipPrivilege`
- `ContainerAdministratorSidString`
- `ContainerUserSidString`

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Comment on lines 3 to 4
// Identity is either a UID and GID pair or a SID (but not both)
type Identity struct {
Copy link
Member Author

Choose a reason for hiding this comment

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

@dmcgowan This is the only thing remaining in this package; it could be moved to something something "volumes" in the daemon, but it's used in 2 packages / interfaces IIRC

@thaJeztah thaJeztah merged commit 4f309de into moby:master Jul 21, 2025
204 of 205 checks passed
@thaJeztah thaJeztah deleted the idtools_rm_deprecated branch July 21, 2025 20:07
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 status/2-code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants