Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testscript: fix "signal: killed" exec errors on MacOS by using os.Symlink on darwin #221

Closed
wants to merge 1 commit into from

Conversation

bep
Copy link
Contributor

@bep bep commented May 4, 2023

By using os.Symlink on Darwin.

See #200

@bep bep force-pushed the fix/unexpectedcommandfailuretake3 branch from d5b8976 to bc3969b Compare May 4, 2023 09:39
@bep bep changed the title testscript: fix "signal: killed" exec errors on MacOS testscript: fix "signal: killed" exec errors on MacOS by using os.Symlink on darwin May 4, 2023
@mvdan
Copy link
Collaborator

mvdan commented May 4, 2023

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.

@bep bep force-pushed the fix/unexpectedcommandfailuretake3 branch from bc3969b to 886643a Compare May 4, 2023 12:52
@bep
Copy link
Contributor Author

bep commented May 4, 2023

@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` instead of `os.Link`..

See rogpeppe#200
@bep bep force-pushed the fix/unexpectedcommandfailuretake3 branch from 886643a to 68c86dc Compare May 4, 2023 12:55
@bep bep closed this May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants