Skip to content

fix: fix FileSystemInfo#createSnapshot with symbol link - #12254

Closed
killagu wants to merge 3 commits into
webpack:mainfrom
killagu:fix/FileSystemInfo-symbollink
Closed

killagu wants to merge 3 commits into
webpack:mainfrom
killagu:fix/FileSystemInfo-symbollink

Conversation

@killagu

@killagu killagu commented Dec 22, 2020

Copy link
Copy Markdown

Resolve #12246

Use fs.lstat instead of fs.stat to get file meta.
If file is symbol link use fs.realpath to get real path,
and use real path to do recursive call.

Refs:

What kind of change does this PR introduce?
Bugfix

Did you add tests for your changes?
Yes

Does this PR introduce a breaking change?
No

What needs to be documented once your changes are merged?
No

@webpack-bot

Copy link
Copy Markdown
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

@killagu killagu changed the title fix: fix FileSystemInfo#createSnapshot with symbol link WIP: fix: fix FileSystemInfo#createSnapshot with symbol link Dec 22, 2020

@alexander-akait alexander-akait left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/cc @sokra

@webpack-bot

Copy link
Copy Markdown
Contributor

@killagu Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@alexander-akait Please review the new changes.

@killagu
killagu force-pushed the fix/FileSystemInfo-symbollink branch from c5c936b to cd3f63b Compare December 23, 2020 05:39
@killagu killagu changed the title WIP: fix: fix FileSystemInfo#createSnapshot with symbol link fix: fix FileSystemInfo#createSnapshot with symbol link Dec 23, 2020
@killagu

killagu commented Dec 31, 2020

Copy link
Copy Markdown
Author

ping @alexander-akait @sokra. Would you mind to review the pr again? This pr's all checks have passed.

@alexander-akait

alexander-akait commented Jan 25, 2021 •

Copy link
Copy Markdown
Member

@killagu Can you fix conflicts

Use fs.lstat instead of fs.stat to get file meta.
If file is symbol link use fs.realpath to get real path,
and use real path to do recursive call.

Refs:
- webpack#12246
@killagu
killagu force-pushed the fix/FileSystemInfo-symbollink branch from cd3f63b to 74ca5fa Compare January 26, 2021 07:05
@killagu
killagu force-pushed the fix/FileSystemInfo-symbollink branch from aec7ba9 to c4fead4 Compare January 26, 2021 08:46
@killagu

killagu commented Jan 26, 2021

Copy link
Copy Markdown
Author

@alexander-akait Conflicts have been fixed.

@rifler

rifler commented Jan 29, 2021 •

Copy link
Copy Markdown

@alexander-akait @killagu let's merge it?

@rifler

rifler commented Feb 10, 2021

Copy link
Copy Markdown

can we merge it?

@paztis

paztis commented Aug 4, 2021

Copy link
Copy Markdown

What is the status for this PR ?
I've disable the symlinks to allow correct module resolution in linked modules. but because of this the watchers are not correctly working on Webpack 5, while they were working on Webpack 4.

This PR is very important to merge to resolve this. Something is blocking here ?

@darktasevski

Copy link
Copy Markdown

Hey, @alexander-akait any updates on ETA for merging this PR? Thank you.

@webpack-bot

Copy link
Copy Markdown
Contributor

@killagu The most important CI builds failed. This way your PR can't be merged.

Please take a look at the CI results from azure (1 errors / 0 warnings) and appveyor (success) and fix these issues.

@alexander-akait

Copy link
Copy Markdown
Member

Here fix right fix #14019

@alexander-akait

Copy link
Copy Markdown
Member

Fixed by #14019

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.

FileSystemInfo can not createSnapshot with symbol link

6 participants