fix: increase bufio's max buffer size to handle large json lines for big repos

This commit is contained in:
Gareth
2026-03-10 22:13:56 -07:00
parent a2474fcdc3
commit bebe608505
+2
View File
@@ -207,6 +207,8 @@ func processProgressOutput[T ProgressEntryValidator](
callback func(T)) (T, error) {
scanner := bufio.NewScanner(output)
// increase the buffer size to handle large JSON lines.
scanner.Buffer(make([]byte, 0, 64*1024), 10*1024*1024)
scanner.Split(bufio.ScanLines)
nonJSONOutput := &errorMessageCollector{}