Skip to content

fix: adds ENOENT for non windows platforms in LinkResolver.#188

Merged
sokra merged 1 commit intowebpack:masterfrom
Aghassi:fix/enoent-throwing
Feb 7, 2021
Merged

fix: adds ENOENT for non windows platforms in LinkResolver.#188
sokra merged 1 commit intowebpack:masterfrom
Aghassi:fix/enoent-throwing

Conversation

@Aghassi
Copy link
Contributor

@Aghassi Aghassi commented Feb 4, 2021

Solves for use case where Webpack is running under Bazel
with iBazel. Heavily relies on symlinks set up in a certain way.

Essentially we don't want Webpack to follow symlinks, but we do want the watcher
to follow symlinks. In that setup, it causes an ENOENT which does not fall through in
watchpack under darwin as the platform (or linux for that matter). This fixes that case.

See bazel-contrib/rules_nodejs#2431

CC @sokra @gregmagolan @mrmeku

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

It is possible to test?

@Aghassi
Copy link
Contributor Author

Aghassi commented Feb 5, 2021

Sure thing, let me dig into the tests today and see where I can add a test for this

@Aghassi Aghassi force-pushed the fix/enoent-throwing branch from 21b63c7 to b78cbf1 Compare February 5, 2021 19:09
Solves for use case where Webpack is running under Bazel
with iBazel. Heavily relies on symlinks set up in a certain way See bazel-contrib/rules_nodejs#2431
@sokra sokra force-pushed the fix/enoent-throwing branch from b78cbf1 to 7684df0 Compare February 7, 2021 16:07
@sokra sokra merged commit cbfc11a into webpack:master Feb 7, 2021
@sokra
Copy link
Member

sokra commented Feb 7, 2021

Thanks

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