From b99830b699fcff4ef3f5cf2a420e4df0689d329e Mon Sep 17 00:00:00 2001 From: Guillaume Lours Date: Fri, 13 Nov 2026 10:57:56 +0100 Subject: [PATCH] docs(compose): explain why publishBackend.Push must stay unexported Publish already runs inside the "publish" progress bracket, and the public Push would open a second one. The comment in internal/publish only covers the other half of that invariant. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Guillaume Lours --- pkg/compose/publish.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/compose/publish.go b/pkg/compose/publish.go index 2aa75bc64..071f1983e 100644 --- a/pkg/compose/publish.go +++ b/pkg/compose/publish.go @@ -67,6 +67,8 @@ func (b publishBackend) ImageDigestResolver(ctx context.Context) func(named refe return imageDigestResolver(ctx, b.s.authProvider(), b.s.apiClient()) } +// Push must stay the unexported push: Publish already runs inside the "publish" +// bracket, and the public Push would open a second one. func (b publishBackend) Push(ctx context.Context, project *types.Project, options api.PushOptions) error { return b.s.push(ctx, project, options) }