From 5f9dd1d702bb46c93b82050a6392de869521ae61 Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Sat, 2 May 2026 10:58:50 +1000 Subject: [PATCH] Gitignore go.sum files inside testdata directories go test occasionally regenerates a go.sum next to a parsed-only go.mod fixture even though the test path never resolves modules. Stop tracking the pattern so the working tree stays clean across test runs. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 6793e76..757f032 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,11 @@ *.test *.out +# go test sometimes writes a go.sum into fixture directories that have a +# go.mod even though the test only parses the module file. The fixtures +# don't need a go.sum. +**/testdata/**/go.sum + # Editor .idea/ .vscode/