Closed bep closed 1 year ago
I wonder if we should support hard links at all, then. I chose hard links because symlinks can cause more trouble, but empirically, hard links are causing trouble as well. Symlinks are better on MacOS, and they shouldn't be worse on Linux.
If you replace os.Link
with os.Symlink
, and add a brief comment about hard links having caused issues on Mac before, I'm happy to merge - with the assumption that we're pretty sure the flakes on Mac would be gone.
@mvdan I have force pushed a version that uses os.Symlink
for all (except Windows). I have also repeated my test a few times, and it 1. Never fails with this branch 2. Always fails on master.
By using
os.Symlink
on Darwin.See #200