From ae91c7e73a247f74173bc76ab19e34d02d3101cd Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 17 Nov 2026 21:26:46 +0100 Subject: [PATCH] Builder: remove Republisher.Ended, which nothing calls since the publish item asks at a build's end (A-457a, A-473) Builds: design 47 G A-457a, A-473 --- .../internal/versions/republish.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modules/mesh-delivery-builder/internal/versions/republish.go b/modules/mesh-delivery-builder/internal/versions/republish.go index 6f6a7947..bf68e038 100644 --- a/modules/mesh-delivery-builder/internal/versions/republish.go +++ b/modules/mesh-delivery-builder/internal/versions/republish.go @@ -299,18 +299,6 @@ func (r *Republisher) Republish(ctx context.Context, module, version string) ([] return r.queue(ctx, vs, r.holdersFn, 0) } -// Ended queues a reserved version whose build has just ended (built-at set, every artifact's digest known) at the holder of -// each artifact's registry seat, as a holder's running does, and drains it (design 47 G A-473). A version with no built-at, or -// whose artifacts are all published, queues nothing. A holder that refuses or does not answer leaves the version in -// version-unreleased with its words (send says it); a seat with no holder leaves it for the holder's running. -func (r *Republisher) Ended(ctx context.Context, module, version string) ([]string, error) { - v, ok, err := r.Reserved.Of(ctx, module, version) - if err != nil || !ok || v.BuiltAt.IsZero() || len(v.Missing()) == 0 { - return nil, err - } - return r.queue(ctx, []ReservedVersion{v}, r.holdersFn, 0) -} - // Queued are the queued versions, per holder in the order they are sent, and the acted keys with their sequences: // builder_publish_queue. type Queued struct {