tools/bump: reformat after the toolchain moves

nixpkgs decides which prettier and gofumpt format the tree. A lock bump to
prettier 3.9.6 reformatted CHANGELOG.md, which no area had touched, and the
formatting check failed on a file the bot never edited.
This commit is contained in:
Kristoffer Dalby
2026-09-09 13:03:21 +00:00
parent d33ed80c41
commit 2cf100360d
2 changed files with 35 additions and 1 deletions
+11 -1
View File
@@ -82,13 +82,23 @@ func allAreas() []area {
areas = append(areas, imageAreas()...)
areas = append(areas, actionAreas()...)
return append(areas, area{
areas = append(areas, area{
Name: "generate",
Needs: []string{"gomod", "tools:oapi-codegen"},
Apply: applyGenerate,
Gate: gateGenerate,
Message: func(change) string { return "all: regenerate generated files" },
})
// Last, so it also covers whatever the generators emitted. nixpkgs decides
// which prettier and gofumpt the tree is formatted with, so a lock bump can
// reformat files no other area went near.
return append(areas, area{
Name: "fmt",
Needs: []string{"flake"},
Apply: applyFormat,
Message: func(change) string { return "all: apply the formatters from the new toolchain" },
})
}
// runAreas applies each area in order, committing the ones that hold and