Our label service is written in TypeScript, and most of the team develops it on Macs. CI builds and tests it on Linux runners, inside the same image we ship.
On a Monday in October main went red with one error: Cannot find module './DpdClient'. The pull request that caused it had renamed dpdClient.ts to DpdClient.ts, to match our naming convention, and updated the four imports. It had passed review. Three of us cloned main fresh on our Macs and every build was clean, so we decided the runner was at fault. We cleared the build cache, ran it again, and lost the morning.
The rename was never in the repository. The default filesystem on a Mac, APFS, is case insensitive: it keeps the capital letters you type but treats DpdClient.ts and dpdClient.ts as the same file. When Git clones onto a filesystem like that it sets core.ignorecase to true, and then it looks up the path in its index, dpdClient.ts, finds the file under either spelling, and reports nothing changed.…