Repository navigation
Commit f2d7774
Keep duplicate "<file> 2" copies out of commits
Something on this machine generates byte-identical copies named "<file>
2.go", "<file> 3.py" and so on, across build output, virtualenvs and
source trees alike — 1,277 of them were cleaned out of ~/Documents/GitHub
in one pass, 190 MB worth, including ten Python modules shadowing their
originals in another repo. Two landed in internal/agent during a session
here and broke the build with redeclaration errors, which is how they
were noticed at all.
The cause is still unknown. It is not iCloud: ~/Documents is not synced,
the symlink in CloudDocs points the other way, and no file carries an
iCloud attribute.
This only keeps them out of commits. It does not stop the build breaking,
because the file is still on disk and the compiler still reads it — so
the comment says where to look when a build fails for no reason.
The pattern is broad enough to catch a legitimately named "Chapter 2.md",
which is a fair trade in a Go repository that has no such file and cannot
tolerate the ones it does get.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent bb7d00e commit f2d7774
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
0 commit comments