Delete sdk/buildlog: the indexer and the view ask the builder's own builds.IsBuildEntry (the view's read.go is the only file of the view touched; ADR 0634 §1; issue 1966)

Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i
This commit is contained in:
2026-11-05 16:11:11 +01:00
parent 0f9dd8a8e3
commit d38a0c8607
3 changed files with 6 additions and 6 deletions
@@ -8,7 +8,7 @@ import (
"sync"
"time"
"git.novox.be/novox/mesh-delivery/sdk/buildlog"
"git.novox.be/novox/mesh-delivery/modules/mesh-delivery-builder/builds"
"git.novox.be/novox/mesh-sdk/go/delivery"
)
@@ -33,7 +33,7 @@ func NewBuilds() *Builds { return &Builds{records: map[string]delivery.BuildReco
// *The node-engine's own build*) is no build and is passed over, whatever its form. A build's entry that does not read, or
// names no module or repository, is refused and said.
func (b *Builds) Put(value []byte) error {
if !buildlog.IsBuildEntry(value) {
if !builds.IsBuildEntry(value) {
return nil
}
e, err := delivery.DecodeBuildLogEntry(value)
@@ -7,7 +7,7 @@ import (
"slices"
"strings"
"git.novox.be/novox/mesh-delivery/sdk/buildlog"
"git.novox.be/novox/mesh-delivery/modules/mesh-delivery-builder/builds"
"git.novox.be/novox/mesh-sdk/go/delivery"
"mesh-delivery-indexer/internal/fingerprint"
@@ -25,7 +25,7 @@ import (
// Imports that cannot be resolved (a package the forge cannot list) are kept with no ImportForm: the next recompute that
// resolves them writes the import form, one rebuild too many, never a stale module.
func (ix *Indexer) ApplyBuildEnd(ctx context.Context, value []byte) error {
if !buildlog.IsBuildEntry(value) {
if !builds.IsBuildEntry(value) {
return nil
}
e, err := delivery.DecodeBuildLogEntry(value)
@@ -14,8 +14,8 @@ import (
"sync/atomic"
"time"
"git.novox.be/novox/mesh-delivery/modules/mesh-delivery-builder/builds"
"git.novox.be/novox/mesh-delivery/modules/mesh-delivery-indexer/takein"
"git.novox.be/novox/mesh-delivery/sdk/buildlog"
stdio "git.novox.be/novox/mesh-sdk/go"
"git.novox.be/novox/mesh-sdk/go/delivery"
)
@@ -912,7 +912,7 @@ func (r Reader) BuildHistory(module string, since time.Time) (HistoryAnswer, err
}
var entries []delivery.BuildLogEntry
for _, le := range page.Entries {
if !buildlog.IsBuildEntry(le.Value) {
if !builds.IsBuildEntry(le.Value) {
continue // an entry of another kind (the old reference form's close, design 51) is no build
}
e, err := delivery.DecodeBuildLogEntry(le.Value)