From 76e2ca1d417845ac9b40c1af63abcb6fa3f1783b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 28 Jul 2025 18:38:51 +0200 Subject: [PATCH] pkg/stack: move to daemon/internal This package is used by the daemon to produce a stack-dump, It has no external consumers, so we can move it to daemon/internal. Signed-off-by: Sebastiaan van Stijn --- daemon/cluster/cluster.go | 2 +- daemon/cluster/swarm.go | 2 +- daemon/debugtrap_unix.go | 2 +- daemon/debugtrap_windows.go | 2 +- {pkg => daemon/internal}/stack/stackdump.go | 0 {pkg => daemon/internal}/stack/stackdump_test.go | 0 6 files changed, 4 insertions(+), 4 deletions(-) rename {pkg => daemon/internal}/stack/stackdump.go (100%) rename {pkg => daemon/internal}/stack/stackdump_test.go (100%) diff --git a/daemon/cluster/cluster.go b/daemon/cluster/cluster.go index 0ffe55ba56..81803a00ca 100644 --- a/daemon/cluster/cluster.go +++ b/daemon/cluster/cluster.go @@ -52,8 +52,8 @@ import ( "github.com/containerd/log" "github.com/docker/docker/daemon/cluster/controllers/plugin" executorpkg "github.com/docker/docker/daemon/cluster/executor" + "github.com/docker/docker/daemon/internal/stack" lncluster "github.com/docker/docker/daemon/libnetwork/cluster" - "github.com/docker/docker/pkg/stack" "github.com/moby/moby/api/types/network" types "github.com/moby/moby/api/types/swarm" swarmapi "github.com/moby/swarmkit/v2/api" diff --git a/daemon/cluster/swarm.go b/daemon/cluster/swarm.go index 5fcf3fc96d..f558c1ba87 100644 --- a/daemon/cluster/swarm.go +++ b/daemon/cluster/swarm.go @@ -9,10 +9,10 @@ import ( "github.com/containerd/log" "github.com/docker/docker/daemon/cluster/convert" + "github.com/docker/docker/daemon/internal/stack" "github.com/docker/docker/daemon/pkg/opts" "github.com/docker/docker/daemon/server/backend" "github.com/docker/docker/errdefs" - "github.com/docker/docker/pkg/stack" "github.com/moby/moby/api/types/container" "github.com/moby/moby/api/types/filters" types "github.com/moby/moby/api/types/swarm" diff --git a/daemon/debugtrap_unix.go b/daemon/debugtrap_unix.go index aba58dee84..e41841f3ad 100644 --- a/daemon/debugtrap_unix.go +++ b/daemon/debugtrap_unix.go @@ -8,7 +8,7 @@ import ( "os/signal" "github.com/containerd/log" - "github.com/docker/docker/pkg/stack" + "github.com/docker/docker/daemon/internal/stack" "golang.org/x/sys/unix" ) diff --git a/daemon/debugtrap_windows.go b/daemon/debugtrap_windows.go index 87bb47859b..58333cbbb9 100644 --- a/daemon/debugtrap_windows.go +++ b/daemon/debugtrap_windows.go @@ -7,7 +7,7 @@ import ( "unsafe" "github.com/containerd/log" - "github.com/docker/docker/pkg/stack" + "github.com/docker/docker/daemon/internal/stack" "golang.org/x/sys/windows" ) diff --git a/pkg/stack/stackdump.go b/daemon/internal/stack/stackdump.go similarity index 100% rename from pkg/stack/stackdump.go rename to daemon/internal/stack/stackdump.go diff --git a/pkg/stack/stackdump_test.go b/daemon/internal/stack/stackdump_test.go similarity index 100% rename from pkg/stack/stackdump_test.go rename to daemon/internal/stack/stackdump_test.go