From: Reinhard Tartler Date: Mon, 21 Sep 2026 18:10:11 -0400 Subject: plumbing/format/packfile: Do not run fixture extraction tests in parallel go-git-fixtures uses an unsynchronized package-level global map to cache extracted fixture files. When TestChecksumMismatch and TestMalformedPack run concurrently, simultaneous writes to this map cause a fatal Go runtime panic ("fatal error: concurrent map writes", Debian bug #1138090). Remove t.Parallel() from these two tests so they run sequentially. Bug: https://github.com/go-git/go-git/issues/2416 Bug-Debian: https://bugs.debian.org/1138090 Forwarded: https://github.com/go-git/go-git/issues/2416 Last-Update: 2026-09-21 --- plumbing/format/packfile/parser_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plumbing/format/packfile/parser_test.go b/plumbing/format/packfile/parser_test.go index 56e00d2..469afd2 100644 --- a/plumbing/format/packfile/parser_test.go +++ b/plumbing/format/packfile/parser_test.go @@ -86,8 +86,6 @@ func (s *ParserSuite) TestParserHashes(c *C) { } func TestChecksumMismatch(t *testing.T) { - t.Parallel() - f, err := os.CreateTemp(t.TempDir(), "temp.pack") require.NoError(t, err) t.Cleanup(func() { @@ -115,8 +113,6 @@ func TestChecksumMismatch(t *testing.T) { } func TestMalformedPack(t *testing.T) { - t.Parallel() - f, err := os.CreateTemp(t.TempDir(), "temp.pack") require.NoError(t, err) t.Cleanup(func() {