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

Prevent --check-files from crossing symlinks #3931

Merged
merged 5 commits into from
Jul 17, 2017

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Jul 13, 2017

Summary

Fix an issue where using --check-files together with symlinks was causing Yarn to crash if the symlink wasn't a valid target. This fix prevent going through all links altogether. It also affects links created via yarn link, but I don't think that's a problem - we probably shouldn't include inside the integrity file the files that belong to another part of the filesystem.

Test plan

Adds a test.

@arcanis arcanis requested a review from BYK July 13, 2017 17:57
Copy link
Member

@kaylie-alexa kaylie-alexa left a comment

Choose a reason for hiding this comment

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

this change makes sense to me :)

Copy link
Member

@BYK BYK left a comment

Choose a reason for hiding this comment

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

Nice! Merge when the builds pass :)

@arcanis arcanis merged commit 71dd1fb into yarnpkg:master Jul 17, 2017
arcanis added a commit that referenced this pull request Jul 19, 2017
* Prevent --check-files from crossing symlinks

* Update integration.js

* Lints
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