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 <noreply@anthropic.com>
Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
This commit is contained in:
Guillaume Lours 2026-11-13 10:57:56 +01:00 • committed by Guillaume Lours
parent a7e4e419f5
commit b99830b699

View file

@ -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)
}