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

fs: Fix #141 comparing symlink permissions #224

Merged
merged 2 commits into from
Jan 15, 2022

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