Answer architecture round 2: one folder walk and one sorted-keys helper, REGENERATE for the index, and the held decisions naming the items that end them

This commit is contained in:
2026-10-03 17:38:26 +02:00
committed by Lillem4n
parent c3b462ec0a
commit 3bb8628e39
9 changed files with 51 additions and 61 deletions
+2 -2
View File
@@ -39,13 +39,13 @@ func loadedCategories(f *Generator) []string {
return out
}
// REPIN=1 rewrites the index.
// REGENERATE=1, which go generate sets, rewrites the index.
func TestShippedIndexIsCurrent(t *testing.T) {
got, err := shippedIndexSource(newShippedWhole(t))
if err != nil {
t.Fatal(err)
}
if os.Getenv("REPIN") == "1" {
if os.Getenv("REGENERATE") == "1" {
if err := os.WriteFile(shippedIndexFile, got, 0o644); err != nil {
t.Fatal(err)
}