Open iambus opened 2 years ago
Any latest developments on this issue?
Yah, I'm getting a similar error in this function: https://github.com/sergi/go-diff/blob/5b0b94c5c0d3d261e044521f7f46479ef869cf76/diffmatchpatch/diff.go#L404
User
panic: runtime error: index out of range [65533] with length 65192
goroutine 1 [running]:
github.com/sergi/go-diff/diffmatchpatch.(*DiffMatchPatch).DiffCharsToLines(0x1400be1c2c8?, {0x1400b52c800, 0x27, 0x22000?}, {0x140126d6000, 0xfea8, 0x22000?})
/Users/omerta/go/pkg/mod/github.com/sergi/go-diff@v1.1.0/diffmatchpatch/diff.go:452 +0x240
github.com/go-git/go-git/v5/utils/diff.DoWithTimeout({0x14024ede000?, 0x100c4b840?}, {0x14025490000?, 0x1009cebcc?}, 0x14006abbbd0?)
/Users/omerta/go/pkg/mod/github.com/go-git/go-git/v5@v5.11.0/utils/diff/diff.go:37 +0xe4
github.com/go-git/go-git/v5/utils/diff.Do(...)
/Users/omerta/go/pkg/mod/github.com/go-git/go-git/v5@v5.11.0/utils/diff/diff.go:22
github.com/go-git/go-git/v5/plumbing/object.filePatchWithContext({0x100f9d9c0, 0x1012a37c0}, 0x14000199f00)
/Users/omerta/go/pkg/mod/github.com/go-git/go-git/v5@v5.11.0/plumbing/object/patch.go:68 +0x140
github.com/go-git/go-git/v5/plumbing/object.getPatchContext({0x100f9d9c0, 0x1012a37c0}, {0x0, 0x0}, {0x14000125e18, 0x3, 0x100f9f460?})
/Users/omerta/go/pkg/mod/github.com/go-git/go-git/v5@v5.11.0/plumbing/object/patch.go:38 +0xc4
github.com/go-git/go-git/v5/plumbing/object.Changes.PatchContext(...)
/Users/omerta/go/pkg/mod/github.com/go-git/go-git/v5@v5.11.0/plumbing/object/change.go:158
github.com/go-git/go-git/v5/plumbing/object.(*Tree).PatchContext(0x34bdbbd1b9a656cc?, {0x100f9d9c0, 0x1012a37c0}, 0x101766d18?)
/Users/omerta/go/pkg/mod/github.com/go-git/go-git/v5@v5.11.0/plumbing/object/tree.go:339 +0x7c
github.com/go-git/go-git/v5/plumbing/object.(*Commit).StatsContext(0x14000000900, {0x100f9d9c0, 0x1012a37c0})
/Users/omerta/go/pkg/mod/github.com/go-git/go-git/v5@v5.11.0/plumbing/object/commit.go:393 +0x1a0
github.com/go-git/go-git/v5/plumbing/object.(*Commit).Stats(...)
/Users/omerta/go/pkg/mod/github.com/go-git/go-git/v5@v5.11.0/plumbing/object/commit.go:369
github.com/devzero-inc/dora/backend/processing.ParseGitRepo.func1(0x14000000900)
/Users/omerta/playground/code/dora/backend/processing/github.go:220 +0x328
github.com/go-git/go-git/v5/plumbing/object.(*commitPreIterator).ForEach(0x140002a2d80?, 0x14000c4a330)
/Users/omerta/go/pkg/mod/github.com/go-git/go-git/v5@v5.11.0/plumbing/object/commit_walker.go:105 +0x80
github.com/devzero-inc/dora/backend/processing.ParseGitRepo({0x14017fbe140?, 0x1400011a020?}, 0x14000a106e0, 0x4daf)
/Users/omerta/playground/code/dora/backend/processing/github.go:186 +0x240
github.com/devzero-inc/dora/backend/processing.ProcessGithubRepo({0x100f9d9c0?, 0x1012a37c0?}, {0x100da430a, 0xa}, {0x100da2bb7, 0x6}, {0x100da303f, 0x7}, {0x100db654f, 0x28}, ...)
/Users/omerta/playground/code/dora/backend/processing/github.go:271 +0x4e4
main.main()
/Users/omerta/playground/code/dora/backend/scripts/generate_dora_db.go:200 +0xd78
Seems oddly close to a max int16, but that doesn't really make sense with Golang AFAICT (always 32 or 64bit).
I see last commit to repo was 8 months ago -- is this still actively being maintained?