Package inventory for Go module migration
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
Piste de recherche
Start with the package inventory in the issue, grouped by consumers, subcommands, the legacy Compose loader, and other packages. Review the listed importers and consumer dependencies, then record a decision beneath each package; done means the inventory reflects which packages should remain public or move to internal. This is broad API design work, and the issue names no source files or tests to start from.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Adopting Go modules changes the import path of every public package.
That makes it a good moment to decide which packages we keep public and which we can break or move to internal/.
Tick an item once we've decided on it, and write the decision under it.
How to read the notes:
- "Consumers" are repos we checked by hand: X buildx, C compose, K buildkit, G go-containerregistry, T testcontainers-go, M model-runner, P mcp-gateway, D
cmd/docker-trust. - "Importers" are other high-profile repos whose current default branch imports the package outside test files.
High profile means at least 1,000 stars and not archived; the star count is in parentheses.
The list is based on pkg.go.dev importer data, checked against each repo's current source.
Imported by the checked consumers
-
cli- Consumers: buildx, compose,
cmd/docker-trust. - Importers: aquasecurity/trivy (39k), keploy/keploy (19k), werf/werf (4.7k), docker/docker-agent (4.4k), ddev/ddev (3.9k), opencurve/curve (2.4k).
- Consumers: buildx, compose,
-
cli/command- Consumers: buildx, compose, testcontainers-go, model-runner, mcp-gateway,
cmd/docker-trust. - Importers: portainer/portainer (39k), aquasecurity/trivy (39k), keploy/keploy (19k), tilt-dev/tilt (10k), alibaba/higress (9.6k), getarcaneapp/arcane (7.9k), k3d-io/k3d (6.6k), psviderski/uncloud (5.5k), werf/werf (4.7k), nicholas-fedor/watchtower (4.6k), docker/docker-agent (4.4k), ddev/ddev (3.9k), supabase/cli (2.4k), opencurve/curve (2.4k), shellhub-io/shellhub (2.1k), zarf-dev/zarf (2.1k), kimdre/doco-cd (1.7k), datastack-net/dockerized (1.3k).
- Its
Cliinterface is the main API we commit to.
- Consumers: buildx, compose, testcontainers-go, model-runner, mcp-gateway,
-
cli/command/container- Consumers: compose only.
- Compose uses
RunExec,NewExecOptions,RunAttach,AttachOptions,RunStats,RunStartandForwardAllSignals. - Importers: none.
- A small public package with just these functions would let this one go internal.
-
cli/command/formatter- Consumers: buildx, compose,
cmd/docker-trust. - Importers: none.
- Consumers: buildx, compose,
-
cli/command/image/build- Consumers: compose only (the classic builder's build-context helpers).
- Importers: loft-sh/devspace (5.2k), digitalocean/doctl (3.5k).
-
cli/command/inspect- Consumers:
cmd/docker-trust. - Importers: none.
- Consumers:
-
cli/config- Consumers: buildx, compose, buildkit, go-containerregistry, mcp-gateway,
cmd/docker-trust. - Importers: nektos/act (72k), wagoodman/dive (55k), jesseduffield/lazydocker (53k), aquasecurity/trivy (39k), 1Panel-dev/1Panel (37k), kubernetes/minikube (32k), dagger/dagger (16k), GoogleContainerTools/skaffold (16k), loft-sh/devpod (15k), earthly/earthly (12k), kubescape/kubescape (12k), loft-sh/vcluster (11k), containerd/nerdctl (10k), tilt-dev/tilt (10k), replicate/cog (9.5k), rancher-sandbox/rancher-desktop (7.4k), azukaar/cosmos-server (6.2k), psviderski/uncloud (5.5k), tsuru/tsuru (5.3k), loft-sh/devspace (5.2k), werf/werf (4.7k), alexellis/arkade (4.6k), nicholas-fedor/watchtower (4.6k), docker/docker-agent (4.4k), whalebrew/whalebrew (4.2k), genuinetools/img (4.0k), okteto/okteto (3.6k), gardener/gardener (3.5k), digitalocean/doctl (3.5k), openfaas/faasd (3.3k), inspektor-gadget/inspektor-gadget (2.9k), supabase/cli (2.4k), aws/eks-anywhere (2.1k), shellhub-io/shellhub (2.1k), apptainer/apptainer (2.0k), project-copacetic/copacetic (1.7k), kimdre/doco-cd (1.7k), genuinetools/reg (1.7k), dragonflyoss/nydus (1.7k), containerd/stargz-snapshotter (1.6k), ktock/buildg (1.5k), solo-io/bumblebee (1.3k), railwayapp/railpack (1.2k), gitlab-org/cli on GitLab (1.1k).
- Covered by the open PR that extracts config into its own module (#6210).
- Consumers: buildx, compose, buildkit, go-containerregistry, mcp-gateway,
-
cli/config/configfile- Consumers: buildx, compose, buildkit, go-containerregistry, mcp-gateway,
cmd/docker-trust. - Importers: istio/istio (38k), hashicorp/nomad (17k), dagger/dagger (16k), GoogleContainerTools/skaffold (16k), loft-sh/devpod (15k), earthly/earthly (12k), loft-sh/vcluster (11k), containerd/nerdctl (10k), replicate/cog (9.5k), woodpecker-ci/woodpecker (8.0k), unkeyed/unkey (5.5k), tsuru/tsuru (5.3k), loft-sh/devspace (5.2k), nicholas-fedor/watchtower (4.6k), runfinch/finch (4.1k), genuinetools/img (4.0k), okteto/okteto (3.6k), openfaas/faasd (3.3k), envoyproxy/gateway (3.1k), inspektor-gadget/inspektor-gadget (2.9k), gitlab-org/gitlab-runner on GitLab (2.6k), aws/eks-anywhere (2.1k), apptainer/apptainer (2.0k), kimdre/doco-cd (1.7k), containerd/stargz-snapshotter (1.6k).
- Consumers: buildx, compose, buildkit, go-containerregistry, mcp-gateway,
-
cli/config/types- Consumers: buildx, compose, buildkit, go-containerregistry.
- Importers: portainer/portainer (39k), aquasecurity/trivy (39k), istio/istio (38k), kubesphere/kubesphere (17k), hashicorp/nomad (17k), dagger/dagger (16k), GoogleContainerTools/skaffold (16k), loft-sh/devpod (15k), loft-sh/vcluster (11k), containerd/nerdctl (10k), replicate/cog (9.5k), woodpecker-ci/woodpecker (8.0k), getarcaneapp/arcane (7.9k), unkeyed/unkey (5.5k), tsuru/tsuru (5.3k), loft-sh/devspace (5.2k), werf/werf (4.7k), alexellis/arkade (4.6k), nicholas-fedor/watchtower (4.6k), genuinetools/img (4.0k), okteto/okteto (3.6k), gardener/gardener (3.5k), digitalocean/doctl (3.5k), envoyproxy/gateway (3.1k), inspektor-gadget/inspektor-gadget (2.9k), gitlab-org/gitlab-runner on GitLab (2.6k), apptainer/apptainer (2.0k), kimdre/doco-cd (1.7k), genuinetools/reg (1.7k).
-
cli/connhelper- Consumers: model-runner.
- Importers: nektos/act (72k), traefik/traefik (65k), wagoodman/dive (55k), GoogleContainerTools/skaffold (16k), yusing/godoxy (4.2k), DataDog/datadog-agent (3.8k), buildpacks/pack (3.0k).
-
cli/connhelper/commandconn- Consumers: buildkit.
- Importers: dagger/dagger (16k), psviderski/uncloud (5.5k), docker/docker-agent (4.4k).
-
cli/context- Consumers: buildx.
- Importers: none.
-
cli/context/docker- Consumers: buildx, compose, model-runner.
- Importers: wagoodman/dive (55k), jesseduffield/lazydocker (53k), kubernetes/minikube (32k), replicate/cog (9.5k), zarf-dev/zarf (2.1k).
-
cli/context/store- Consumers: buildx, compose.
- Importers: wagoodman/dive (55k), jesseduffield/lazydocker (53k), kubernetes/minikube (32k), replicate/cog (9.5k), kimdre/doco-cd (1.7k).
-
cli/debug- Consumers: buildx,
cmd/docker-trust. - Importers: none.
- Consumers: buildx,
-
cli/flags- Consumers: buildx, compose, testcontainers-go, model-runner, mcp-gateway,
cmd/docker-trust. - Importers: portainer/portainer (39k), aquasecurity/trivy (39k), keploy/keploy (19k), tilt-dev/tilt (10k), alibaba/higress (9.6k), getarcaneapp/arcane (7.9k), k3d-io/k3d (6.6k), psviderski/uncloud (5.5k), werf/werf (4.7k), nicholas-fedor/watchtower (4.6k), docker/docker-agent (4.4k), ddev/ddev (3.9k), supabase/cli (2.4k), shellhub-io/shellhub (2.1k), zarf-dev/zarf (2.1k), kimdre/doco-cd (1.7k), datastack-net/dockerized (1.3k).
- Consumers: buildx, compose, testcontainers-go, model-runner, mcp-gateway,
-
cli/streams- Consumers: buildx, compose,
cmd/docker-trust. - Importers: psviderski/uncloud (5.5k), loft-sh/devspace (5.2k), ovh/cds (4.8k), ddev/ddev (3.9k), supabase/cli (2.4k), sealerio/sealer (2.1k), iximiuz/cdebug (1.7k).
- Consumers: buildx, compose,
-
cli-plugins/hooks- Consumers: compose.
- Importers: none.
-
cli-plugins/manager- Consumers: compose, mcp-gateway.
- Importers: ddev/ddev (3.9k).
-
cli-plugins/metadata- Consumers: buildx, compose, model-runner,
cmd/docker-trust. - Importers: docker/docker-agent (4.4k).
- Consumers: buildx, compose, model-runner,
-
cli-plugins/plugin- Consumers: buildx, compose, model-runner, mcp-gateway,
cmd/docker-trust. - Importers: docker/docker-agent (4.4k).
- Consumers: buildx, compose, model-runner, mcp-gateway,
-
opts- Consumers: buildx, compose,
cmd/docker-trust. - Importers: nektos/act (72k), siderolabs/talos (11k), containerd/nerdctl (10k), tilt-dev/tilt (10k), getarcaneapp/arcane (7.9k), k3d-io/k3d (6.6k), psviderski/uncloud (5.5k), moncho/dry (3.3k), gitlab-org/gitlab-runner on GitLab (2.6k), kimdre/doco-cd (1.7k).
- Consumers: buildx, compose,
-
pkg/kvfile- Consumers: compose.
- Importers: none.
Public only because other packages use them
None of the checked consumers import these directly.
Of these, only cli/config/credentials appears in the exported API of the packages above.
-
cli/config/credentials- Must stay public as long as
configfiledoes, becauseConfigFile.GetCredentialsStorereturnscredentials.Store. - Importers: nektos/act (72k), nicholas-fedor/watchtower (4.6k), aws/eks-anywhere (2.1k), kimdre/doco-cd (1.7k).
- Must stay public as long as
-
cli/config/memorystore- Importers: none.
-
cli/connhelper/ssh- Importers: none.
-
cli/command/formatter/tabwriter- Importers: none.
-
cli/hints- Importers: none.
-
cli/version- This is the
-Xldflags target inscripts/build/.variables; see the version-string item below. - Importers: ddev/ddev (3.9k).
- ddev sets
version.Versionat runtime to change the User-Agent. NewAPIClientFromFlagsalways usesUserAgent(), so ddev has no other way to do this today.
- This is the
-
cli-plugins/socket- Importers: none.
-
templates- Importers: containerd/nerdctl (10k), moncho/dry (3.3k).
- Plugins might want it for
--format.
Subcommand packages
cli/command/image already says "Do not import commands directly".
-
cli/command/builder- Importers: none.
-
cli/command/checkpoint- Importers: none.
-
cli/command/commands- Importers: werf/werf (4.7k).
-
cli/command/completion- Importers: none.
- Its shell-completion helpers might be useful to plugins.
-
cli/command/config- Importers: none.
-
cli/command/context- Importers: none.
-
cli/command/idresolver- Importers: none.
task.Printtakes anidresolver.IDResolver, so it must stay public as long astaskdoes.
-
cli/command/image- Importers: none.
-
cli/command/manifest- Importers: none.
-
cli/command/network- Importers: none.
-
cli/command/node- Importers: none.
-
cli/command/plugin- Importers: none.
-
cli/command/registry- Importers: none.
-
cli/command/secret- Importers: none.
-
cli/command/service- Importers: none.
-
cli/command/service/progress- Importers: offen/docker-volume-backup (4.1k), kimdre/doco-cd (1.7k).
-
cli/command/stack- Importers: none.
-
cli/command/swarm- Importers: none.
-
cli/command/swarm/progress- Importers: none.
-
cli/command/system- Importers: none.
-
cli/command/system/pruner- Importers: none.
-
cli/command/task- Importers: none.
-
cli/command/volume- Importers: none.
Legacy docker stack compose loader
loader, convert and types expose internal/volumespec types through aliases such as types.ServiceVolumeConfig = volumespec.VolumeConfig.
In practice, that makes those internal types public too.
-
cli/compose/loader- Importers: nektos/act (72k), portainer/portainer (39k), goodrain/rainbond (6.3k), buildpacks/pack (3.0k), supabase/cli (2.4k), kimdre/doco-cd (1.7k).
-
cli/compose/types- Importers: portainer/portainer (39k), goodrain/rainbond (6.3k), buildpacks/pack (3.0k), kimdre/doco-cd (1.7k).
- The
loaderandconvertAPIs use it.
-
cli/compose/convert- Importers: portainer/portainer (39k), kimdre/doco-cd (1.7k).
-
cli/compose/schema- Importers: portainer/portainer (39k), kimdre/doco-cd (1.7k).
-
cli/compose/schema/data- Importers: none.
-
cli/compose/interpolation- The
loaderAPI uses itsOptionstype. - Importers: none.
- The
-
cli/compose/template- The
loaderandinterpolationAPIs use itsMappingtype. - Importers: none.
- The
Other
-
cli/manifest/store- Its API uses types from
cli/manifest/types. - Importers: none.
- Its API uses types from
-
cli/manifest/types- Importers: none.
-
opts/swarmopts- Importers: none.
-
e2e/testutils- Importable but test-only.
- Importers: none.
-
cmd/docker/winresources- Contains only package documentation.
- Importers: none.
Related issues in this PR
-
-Xldflags path forcli/version- The path becomes
github.com/docker/cli/v29/cli/version, so it changes in 29.10.0 and again at every new major version. - Go silently ignores
-Xfor a symbol that doesn't exist, so a stale path produces a binary that reports the wrong version, with no error. - Homebrew and Void hard-code the old path, and Debian's docker-team rules build it from
CLI_PKG. - Nix, Arch and Alpine build with
make dynbinary, so they pick up the new path automatically. - If
cli/versionmoves tointernal/, do it in the same release so the path only changes once.
- The path becomes
- Langage dominant
- Go
- Étoiles
- 6.1k
- Forks
- 2.2k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 62
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de docker/cli
-
Mode option in tmpfs volume is ignored when deployed via docker stack deployPeut-être pris @locker95 l’a pris il y a 15 jours. Ouvertekind/bug status/0-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 1 jour
-
docker stack: text after an unbraced `$VAR` is dropped when it starts with `-`, `:-`, `?` or `:?`Peut-être pris @sebxt l’a pris il y a 28 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 87/100
Les mainteneurs répondent en général sous 1 jour
-
filename completion on `docker load -i`Peut-être pris @cra l’a pris il y a 31 jours. Ouvertekind/feature status/0-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
docker build treats uppercase HTTP(S) URLs as local pathsPeut-être pris @TanvirTian l’a pris il y a 38 jours. Ouvertekind/bug status/0-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 1 jour
-
`docker context export` writes a truncated tar archivePeut-être pris @2arian3 l’a pris il y a 54 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 92/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de docker/cli
Issues similaires
-
agent-review-finding chore
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
jordansmall/spindrift#7254 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
pg-sharding/spqr#3275 ·
Les mainteneurs répondent en général sous 1 jour
-
create_or_update_file rejects explicitly empty file contentPeut-être pris @Elon-Jiang l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
github/github-mcp-server#3883 ·
Les mainteneurs répondent en général sous 4 jours
-
feature
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
databricks/terraform-provider-databricks#6210 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
IBM-Cloud/terraform-provider-ibm#7115 ·
Les mainteneurs répondent en général sous 2 jours