catalogue: Resolve keeps the digest of a templated module's archive as TemplatesDigest (A-481, A-481a)

Builds: design 47 G A-481, A-481a
This commit is contained in:
2026-11-17 23:43:08 +01:00
parent 57f03e9f65
commit 3bb2c4e7f4
3 changed files with 22 additions and 0 deletions
+3
View File
@@ -64,6 +64,7 @@ func (m Manifest) Resolve(built []Built) (Manifest, error) {
// **Each template's text, as the build read it back from its templates archive** (novox/hq ADR 0349 §2): into
// the file's content, so what the mesh holds and composes is what the same text inline would be.
var handed *Handed
templatesDigest := ""
if m.Templated() {
name := TemplatesArtifact(m)
texts := by[name].Texts
@@ -90,12 +91,14 @@ func (m Manifest) Resolve(built []Built) (Manifest, error) {
// And, for a moved module, where its templates are and which one each file and item is filled from
// (handed.go): read while its resources and items still name their templates.
handed = handedBy(m, by[name])
templatesDigest = by[name].Digest
m.Resources = filled
m.Items = items
}
out := m
out.Handed = handed
out.TemplatesDigest = templatesDigest
out.Build = nil
// Read with the build, like Build: the manifest the mesh holds carries each file's text (issue 731).
out.Templates = ""