pkg/system: move to daemon/internal

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>
This commit is contained in:
Sebastiaan van Stijn
2025-07-29 11:48:57 +02:00
parent d94171bfaa
commit 5535e81a79
19 changed files with 9 additions and 9 deletions

View File

@@ -17,10 +17,10 @@ import (
"github.com/docker/docker/daemon/builder"
"github.com/docker/docker/daemon/builder/remotecontext"
"github.com/docker/docker/daemon/builder/remotecontext/urlutil"
"github.com/docker/docker/daemon/internal/system"
"github.com/docker/docker/pkg/longpath"
"github.com/docker/docker/pkg/progress"
"github.com/docker/docker/pkg/streamformatter"
"github.com/docker/docker/pkg/system"
"github.com/moby/buildkit/frontend/dockerfile/instructions"
"github.com/moby/go-archive"
"github.com/moby/sys/symlink"

View File

@@ -7,7 +7,7 @@ import (
"strings"
"github.com/Microsoft/go-winio"
"github.com/docker/docker/pkg/system"
"github.com/docker/docker/daemon/internal/system"
"github.com/moby/sys/reexec"
"github.com/pkg/errors"
"golang.org/x/sys/windows"

View File

@@ -8,9 +8,9 @@ import (
"github.com/containerd/log"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/internal/system"
"github.com/docker/docker/daemon/libnetwork"
"github.com/docker/docker/daemon/network"
"github.com/docker/docker/pkg/system"
"github.com/pkg/errors"
)

View File

@@ -16,6 +16,7 @@ import (
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/internal/libcontainerd/local"
"github.com/docker/docker/daemon/internal/libcontainerd/remote"
"github.com/docker/docker/daemon/internal/system"
"github.com/docker/docker/daemon/libnetwork"
nwconfig "github.com/docker/docker/daemon/libnetwork/config"
winlibnetwork "github.com/docker/docker/daemon/libnetwork/drivers/windows"
@@ -25,7 +26,6 @@ import (
"github.com/docker/docker/daemon/network"
"github.com/docker/docker/pkg/parsers/operatingsystem"
"github.com/docker/docker/pkg/sysinfo"
"github.com/docker/docker/pkg/system"
containertypes "github.com/moby/moby/api/types/container"
networktypes "github.com/moby/moby/api/types/network"
"github.com/moby/sys/user"

View File

@@ -12,8 +12,8 @@ import (
"syscall"
"time"
"github.com/docker/docker/daemon/internal/system"
"github.com/docker/docker/pkg/pools"
"github.com/docker/docker/pkg/system"
"github.com/moby/sys/userns"
"golang.org/x/sys/unix"
)

View File

@@ -11,7 +11,7 @@ import (
"testing"
"time"
"github.com/docker/docker/pkg/system"
"github.com/docker/docker/daemon/internal/system"
"golang.org/x/sys/unix"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"

View File

@@ -11,7 +11,7 @@ import (
"github.com/containerd/containerd/v2/core/mount"
"github.com/docker/docker/daemon/graphdriver/overlayutils"
"github.com/docker/docker/pkg/system"
"github.com/docker/docker/daemon/internal/system"
"github.com/moby/sys/userns"
"github.com/pkg/errors"
"golang.org/x/sys/unix"

View File

@@ -14,7 +14,7 @@ import (
"syscall"
"time"
"github.com/docker/docker/pkg/system"
"github.com/docker/docker/daemon/internal/system"
)
// mkdirAllWithChtimes is nearly an identical copy to the [os.MkdirAll] but

View File

@@ -20,7 +20,7 @@ import (
v1 "github.com/docker/docker/daemon/internal/image/v1"
"github.com/docker/docker/daemon/internal/ioutils"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/pkg/system"
"github.com/docker/docker/daemon/internal/system"
"github.com/moby/go-archive"
"github.com/moby/moby/api/types/events"
"github.com/moby/sys/sequential"