Scenario: You have an addon with a checked-in symlink "some-file => node_modules/some-package/some-file". Your app tries to link to a git branch of your addon. Depending on how npm or yarn structures the node_modules tree, the symlink may be broken. v1.5.0 version of hash-for-dep throws when v1.2.3 didn't.
Scenario: You have an addon with a checked-in symlink "some-file => node_modules/some-package/some-file". Your app tries to link to a git branch of your addon. Depending on how npm or yarn structures the node_modules tree, the symlink may be broken. v1.5.0 version of hash-for-dep throws when v1.2.3 didn't.
This is borrowing the code from https://github.com/broccolijs/broccoli-kitchen-sink-helpers/blob/v0.3.1/index.js#L50-L63 that was in use in v1.2.3.
It is not ideal that we have projects with checked-in symlinks, but nevertheless, this fixes the regression.