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

Dont use unreliable inodes for checking file identity #25008

Merged
merged 3 commits into from
Jun 15, 2018

Conversation

weswigham
Copy link
Member

Since node can report multiple files as having the same inode due to a casting bug, as just happened to me, ref nodejs/node#12115 (and we dont need to handle symlinks anyway, tbh).

Also concatenate with just lf, since all the other line endings are lf, and we don't want mixed line endings in the lkg.

@@ -4,26 +4,19 @@ const { join } = require("path");

/**
* Find the size of a directory recursively.
* Symbolic links are counted once (same inode).
* Symbolic links can cause a loop.
Copy link
Member

Choose a reason for hiding this comment

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

A+ would loop again

@weswigham weswigham merged commit 657d011 into microsoft:master Jun 15, 2018
@weswigham weswigham deleted the small-build-fixes branch June 15, 2018 22:53
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.

2 participants