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

Fix duplicated content due to symlinks #1505

Closed
wants to merge 1 commit into from
Closed

Fix duplicated content due to symlinks #1505

wants to merge 1 commit into from

Conversation

padmaia
Copy link
Contributor

@padmaia padmaia commented Jun 7, 2018

fixes #1125

@padmaia padmaia closed this Jun 7, 2018
@padmaia padmaia reopened this Jun 7, 2018
@jamiebuilds jamiebuilds requested a review from devongovett June 7, 2018 20:38
@codecov-io
Copy link

Codecov Report

Merging #1505 into master will decrease coverage by 0.99%.
The diff coverage is 83.33%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1505   +/-   ##
=======================================
- Coverage   89.21%   88.22%   -1%     
=======================================
  Files          80       80           
  Lines        4403     4406    +3     
=======================================
- Hits         3928     3887   -41     
- Misses        475      519   +44
Impacted Files Coverage Δ
src/Resolver.js 100% <100%> (ø) ⬆️
src/Bundler.js 93.18% <75%> (-0.25%) ⬇️
src/transforms/htmlnano.js 68.42% <0%> (-31.58%) ⬇️
src/utils/loadPlugins.js 64.28% <0%> (-26.2%) ⬇️
src/transforms/posthtml.js 84.21% <0%> (-12.29%) ⬇️
src/visitors/dependencies.js 78.63% <0%> (-6.84%) ⬇️
src/utils/localRequire.js 94.11% <0%> (-5.89%) ⬇️
src/utils/config.js 86.95% <0%> (-4.35%) ⬇️
src/utils/getTargetEngines.js 94.73% <0%> (-2.11%) ⬇️
src/visitors/fs.js 91.24% <0%> (-1.46%) ⬇️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40fb76f...84788c4. Read the comment docs.

Copy link
Member

@devongovett devongovett left a comment

Choose a reason for hiding this comment

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

Thanks! I think we'll probably need to also store the realpath in the cache instead of (along with?) the symlink path so that the assets get deduped in subsequent builds. See https://github.com/parcel-bundler/parcel/pull/1505/files#diff-ed26e1346331966874d8103cdcdbed47R416

@padmaia
Copy link
Contributor Author

padmaia commented Jun 11, 2018

Yeah, I'm realizing I was too zoomed in on this. I'll spend some more time on it this week.

@padmaia
Copy link
Contributor Author

padmaia commented Jun 29, 2018

I'm going to close this PR because based on my findings outlined in this comment I don't think the related issue should be considered a bug to be fixed. If we decide to add an option to accommodate normal Node module resolution I will open up another PR.

@padmaia padmaia closed this Jun 29, 2018
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.

Symlink realpaths
3 participants