Transfer publication sources one at a time

This commit is contained in:
2026-12-01 20:33:18 +00:00
parent d311579dc0
commit f59a53e31b
9 changed files with 225 additions and 25 deletions

View File

@@ -189,7 +189,9 @@ func (publishStage) Run(ctx context.Context, env *Env, m *manifest.Manifest) (*S
// Durability boundary: transfer every declared immutable object, write the
// immutable commit, perform pre-pointer checks, then write the sole mutable
// current pointer exactly once.
uploadedDeclarations, err := uploadPublishTransfers(ctx, env.ObjectStore, uploader, transfers)
uploadedDeclarations, err := uploadPublishTransfers(ctx, env.ObjectStore, uploader, transfers, func(root, relative string) (publishSource, error) {
return openPublishSourceUnderRoot(root, relative)
})
if err != nil {
return nil, fmt.Errorf("publish: %w", err)
}