Answer stability round 2, prose round 2 and product-owner round 2: a head may be a name, scope and link come before the entries using them, a path reaches a node, and resolve ties a reference or a name

This commit is contained in:
2026-10-07 00:59:30 +02:00
committed by Lillem4n
parent 63223c6d63
commit d0886e4795
7 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func (t *template) resolveRefs(folder []string, label, category string, root map
if category != "" && head == "/"+category {
return refs, fmt.Errorf("%s: reference {%s}: names the category it sits in; read a sibling field as a path, or move the shared value into its own category and reference that", label, name)
}
if err := checkPathResolves(target, tail, head); err != nil {
if err := checkPathReaches(target, tail, head); err != nil {
return refs, fmt.Errorf("%s: reference {%s}: %w", label, name, err)
}
refs.categories[head] = target