update linters for go1.25 base version

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2026-01-09 18:54:15 -08:00
parent 8037f199db
commit c5154b3169
30 changed files with 76 additions and 77 deletions
+3 -3
View File
@@ -135,9 +135,9 @@ func generateBakeStdlibDocs(filename string) error {
}
currentContent := string(dt)
start := strings.Index(currentContent, "<!---MARKER_STDLIB_START-->")
before, _, ok := strings.Cut(currentContent, "<!---MARKER_STDLIB_START-->")
end := strings.Index(currentContent, "<!---MARKER_STDLIB_END-->")
if start == -1 {
if !ok {
return errors.Errorf("no start marker in %s", filename)
}
if end == -1 {
@@ -164,7 +164,7 @@ func generateBakeStdlibDocs(filename string) error {
table.AddRow(fname, fdesc)
}
newContent := currentContent[:start] + "<!---MARKER_STDLIB_START-->\n\n" + table.String() + "\n" + currentContent[end:]
newContent := before + "<!---MARKER_STDLIB_START-->\n\n" + table.String() + "\n" + currentContent[end:]
return os.WriteFile(filename, []byte(newContent), 0644)
}