Skip to content

pkg/idtools: remove deprecated functions and types#50456

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:idtools_rm_deprecated
Jul 21, 2025
Merged

pkg/idtools: remove deprecated functions and types#50456
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:idtools_rm_deprecated

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 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 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.

4 participants