Skip to content

Conversation

@npaun
Copy link
Contributor

@npaun npaun commented Dec 3, 2025

Fixes #59168
As for the destination parameter symlink_status and status were accidentally swapped. symlink_status does NOT dereference while status does.

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Dec 3, 2025
@anonrig anonrig added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 3, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 3, 2025
@nodejs-github-bot
Copy link
Collaborator

@npaun npaun force-pushed the npaun/fix-cpsync-dereference-true branch from 49bc013 to 4c47117 Compare December 3, 2025 20:37
@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.53%. Comparing base (746c3c2) to head (4c47117).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #60945   +/-   ##
=======================================
  Coverage   88.53%   88.53%           
=======================================
  Files         703      703           
  Lines      208406   208406           
  Branches    40198    40193    -5     
=======================================
+ Hits       184502   184504    +2     
- Misses      15901    15908    +7     
+ Partials     8003     7994    -9     
Files with missing lines Coverage Δ
src/node_file.cc 75.47% <100.00%> (-0.08%) ⬇️

... and 28 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +5 to +6
// In this test, both the cp and cpSync functions are attempting to copy
// a file over a symlinked directory.
Copy link
Member

Choose a reason for hiding this comment

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

Unlike the original test-fs-cp-sync-dereference.js, this one seems to test only the synchronous version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fs.cpSync with dereference: true does not dereference (regression in 22.17)

8 participants