Skip to content

Conversation

@DominicLavery
Copy link
Contributor

I have run into #141 a few times whilst working on macos recently.
So this PR applies the suggested fix from the issue & adds a test that fails on a mac if run without the fix.

@CLAassistant
Copy link

CLAassistant commented Jan 7, 2022

CLA assistant check
All committers have signed the CLA.

@dnephin
Copy link
Member

dnephin commented Jan 8, 2022

Thank you for the PR! I think this looks good, but we can avoid duplicating the rest of the file by using runtime.GOOS. I tried that out here: https://github.com/gotestyourself/gotest.tools/compare/fs-darwin-symlink-filemode. I wasn't able to push that commit to this PR. I think because the PR branch is main.

Does the change I made still work for you on darwin? If you can add the commit (git cherry-pick fdb36430a19cac4c0d055b2f84b7cbf1bbf58d3e) I can merge this PR.

To remove the need to duplicate the rest of the file.
@DominicLavery
Copy link
Contributor Author

Hi @dnephin. Thanks for the feedback! I've given it a go with your commit and it works on mac. So I have pushed it up

Copy link
Member

@dnephin dnephin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

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.

3 participants