Answer architecture round 1: one inline load-and-bind, go generate for the index, sorted unloaded names, item 79 named in the decision, and the audit's other findings filed

This commit is contained in:
2026-10-03 17:31:39 +02:00
committed by Lillem4n
parent 77fb7b69f6
commit c3b462ec0a
11 changed files with 102 additions and 47 deletions
+6 -2
View File
@@ -51,12 +51,16 @@ func TestShippedIndexIsCurrent(t *testing.T) {
}
return
}
want, err := os.ReadFile(shippedIndexFile)
file, err := os.ReadFile(shippedIndexFile)
if err != nil {
t.Fatal(err)
}
want, err := format.Source(file) // docs/decisions.md#the-format-check-runs-on-the-latest-go-only
if err != nil {
t.Fatal(err)
}
if string(got) != string(want) {
t.Fatalf("%s is stale for data/; rewrite it with REPIN=1", shippedIndexFile)
t.Fatalf("%s is stale for data/; regenerate it with go generate", shippedIndexFile)
}
}