build: regenerate and verify all generated outputs

Expand the generated-file gate beyond *_gen.go and go.sum to cover generated tests, msgp output, stringer files, go.mod, and untracked generated artifacts.

Regenerate the 19 stale stringer outputs with the go.mod-pinned x/tools version. Runtime String output is unchanged, and a repeated generation pass now leaves the tree byte-identical.

Co-authored-by: ChatGPT <noreply@openai.com>
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Feng Ruohang
2026-08-04 22:44:59 +08:00
parent 632ade111b
commit 1814ae52f4
20 changed files with 74 additions and 46 deletions
+3 -2
View File
@@ -37,8 +37,9 @@ const _scannerMetric_name = "ReadMetadataCheckMissingSaveUsageApplyAllApplyVersi
var _scannerMetric_index = [...]uint8{0, 12, 24, 33, 41, 53, 65, 74, 77, 93, 98, 112, 127, 147, 157, 167, 186, 198, 208, 217, 232, 245, 249}
func (i scannerMetric) String() string {
if i >= scannerMetric(len(_scannerMetric_index)-1) {
idx := int(i) - 0
if i < 0 || idx >= len(_scannerMetric_index)-1 {
return "scannerMetric(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _scannerMetric_name[_scannerMetric_index[i]:_scannerMetric_index[i+1]]
return _scannerMetric_name[_scannerMetric_index[idx]:_scannerMetric_index[idx+1]]
}