mirror of
https://github.com/docker/compose.git
synced 2026-11-17 13:45:39 +00:00
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:
parent
a7e4e419f5
commit
b99830b699
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue