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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user