Skip to content

pkg/system: move to daemon/internal#50559

Merged
thaJeztah merged 8 commits intomoby:masterfrom
thaJeztah:pkg_system_clean
Jul 29, 2025
Merged

pkg/system: move to daemon/internal#50559
thaJeztah merged 8 commits intomoby:masterfrom
thaJeztah:pkg_system_clean

Conversation

@thaJeztah
Copy link
Member

pkg/system: remove deprecated EscapeArgs

It was deprecated in 63bada4, but won't
be carried to the new modules.

pkg/system: remove deprecated IsAbs

It was deprecated in f8a2550, but won't
be carried to the new modules.

pkg/system: MkdirAllWithACL: remove stubs and unused os.FileMode arg

Remove the stub implementation for non-Windows platforms, and remove the
os.FileMode argument, which is ignored on Windows.

pkg/system: remove Lgetxattr, Lsetxattr stubs for non-Linux

It's only used in Linux code. Remove the stubs, which are not carried
forward into the module.

pkg/system: remove unused ErrNotSupportedPlatform

daemon/builder/remotecontext: remove detection of system.XattrError

Both locations checked an error from filepath.Rel in stdlib, which
would never return a system.XattrError, so this was just dead code.

pkg/system: make XattrError linux-only

It's only produced in Linux code, so put it in a Linux-only file.

pkg/system: move to daemon/internal

It has no external users, and this package still has too many different
responsibilities, so moving it internal so that we can decide to dismantle
it further.

- Human readable description for the release notes

Go SDK: pkg/system was removed, and is now an internal package.

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

It was deprecated in 63bada4, but won't
be carried to the new modules.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
It was deprecated in f8a2550, but won't
be carried to the new modules.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Remove the stub implementation for non-Windows platforms, and remove the
os.FileMode argument, which is ignored on Windows.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
It's not used, and is not carried in the new module.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
It's only used in Linux code. Remove the stubs, which are not carried
forward into the module.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
It's only produced in Linux code, so put it in a Linux-only file.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
It has no external users, and this package still has too many different
responsibilities, some of which may be available elsewhere, so moving it
internal so that we can decide to dismantle it further.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added this to the 29.0.0 milestone Jul 29, 2025
@thaJeztah thaJeztah requested a review from dmcgowan as a code owner July 29, 2025 09:51
@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 go-modules labels Jul 29, 2025
@thaJeztah thaJeztah merged commit 12b7613 into moby:master Jul 29, 2025
194 checks passed
@thaJeztah thaJeztah deleted the pkg_system_clean branch July 29, 2025 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Development

Successfully merging this pull request may close these issues.

2 participants