René's URL Explorer Experiment


Title: fs.cpSync with dereference: true does not dereference (regression in 22.17) · Issue #59168 · nodejs/node · GitHub

Open Graph Title: fs.cpSync with dereference: true does not dereference (regression in 22.17) · Issue #59168 · nodejs/node

X Title: fs.cpSync with dereference: true does not dereference (regression in 22.17) · Issue #59168 · nodejs/node

Description: Version 22.17.1 and 22.17.0 Platform Darwin 24.5.0 Subsystem fs What steps will reproduce the bug? workspace nvm use 22.16 Using Node v22.16.0 workspace rm -rf node-repro; mkdir node-repro && cd node-repro && mkdir src linked && touch li...

Open Graph Description: Version 22.17.1 and 22.17.0 Platform Darwin 24.5.0 Subsystem fs What steps will reproduce the bug? workspace nvm use 22.16 Using Node v22.16.0 workspace rm -rf node-repro; mkdir node-repro && cd no...

X Description: Version 22.17.1 and 22.17.0 Platform Darwin 24.5.0 Subsystem fs What steps will reproduce the bug? workspace nvm use 22.16 Using Node v22.16.0 workspace rm -rf node-repro; mkdir node-repro &&am...

Opengraph URL: https://github.com/nodejs/node/issues/59168

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fs.cpSync with dereference: true does not dereference (regression in 22.17)","articleBody":"### Version\n\n22.17.1 and 22.17.0\n\n### Platform\n\n```text\nDarwin 24.5.0\n```\n\n### Subsystem\n\nfs\n\n### What steps will reproduce the bug?\n\n```\nworkspace  nvm use 22.16\nUsing Node v22.16.0\n workspace  rm -rf node-repro; mkdir node-repro && cd node-repro && mkdir src linked && touch linked/foo && ln -s ../linked/foo src/bar && node -e \"fs.cpSync('./src', './out', {dereference: true, recursive: true})\" && ls -la out && cd ..\ntotal 0\ndrwxr-xr-x  3 robhogan  staff   96 22 Jul 15:14 .\ndrwxr-xr-x  5 robhogan  staff  160 22 Jul 15:14 ..\n-rw-r--r--  1 robhogan  staff    0 22 Jul 15:14 bar\n workspace  nvm use 22.17.0\nUsing Node v22.17.0\n workspace  rm -rf node-repro; mkdir node-repro && cd node-repro && mkdir src linked && touch linked/foo && ln -s ../linked/foo src/bar && node -e \"fs.cpSync('./src', './out', {dereference: true, recursive: true})\" && ls -la out && cd ..\ntotal 0\ndrwxr-xr-x  3 robhogan  staff   96 22 Jul 15:14 .\ndrwxr-xr-x  5 robhogan  staff  160 22 Jul 15:14 ..\nlrwxr-xr-x  1 robhogan  staff   47 22 Jul 15:14 bar -> /Users/robhogan/workspace/node-repro/linked/foo\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAppears to reproduce consistently, no known conditions\n\n### What is the expected behavior? Why is that the expected behavior?\n\nIn all versions up to 22.17, when `{dereference: true}` was passed as an option to `fs.cpSync`, any symlinks in the source directory would be dereferenced and their targets copied to the destination.\n\n\n\n### What do you see instead?\n\nIn 22.17, a symlink is created in destination instead of a copy of the symlink's target, which is the same as `{dereference: false}`.\n\n### Additional information\n\nAppears closely related to https://github.com/nodejs/node/issues/58939 and probably has the same blame commit.","author":{"url":"https://github.com/robhogan","@type":"Person","name":"robhogan"},"datePublished":"2025-07-22T14:25:14Z","url":"https://github.com/nodejs/node/issues/59168"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:480b8f1e-c951-27d1-0d65-622c1e1d6046
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA186:39BC20:11131A8:16D3989:6AED596C
html-safe-noncef63990808d23b20a136de6f73a968b2b17d064cf7589d8873a135137c571ea3e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTg2OjM5QkMyMDoxMTEzMUE4OjE2RDM5ODk6NkFFRDU5NkMiLCJ2aXNpdG9yX2lkIjoiMTU0MTQ5MDU2MDYyOTI5OTU2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5370793e22a25bba1795989b4cbf9c6651bab2024ad7cea4818a601176357a3e
hovercard-subject-tagissue:3252912861
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/59168/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c1a72b8fb7489e82292fdc4bce57f9361d15fa1c3ec70c163c5309275521d58d/nodejs/node/issues/59168
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c1a72b8fb7489e82292fdc4bce57f9361d15fa1c3ec70c163c5309275521d58d/nodejs/node/issues/59168
og:image:altVersion 22.17.1 and 22.17.0 Platform Darwin 24.5.0 Subsystem fs What steps will reproduce the bug? workspace nvm use 22.16 Using Node v22.16.0 workspace rm -rf node-repro; mkdir node-repro && cd no...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerobhogan
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/59168#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F59168
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F59168
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/59168
Reloadhttps://github.com/nodejs/node/issues/59168
Reloadhttps://github.com/nodejs/node/issues/59168
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues654 (654)https://github.com/nodejs/node/issues
Pull requests662 (662)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/59168
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/59168
#65731https://github.com/nodejs/node/pull/65731
fs.cpSync with dereference: true does not dereference (regression in 22.17)https://github.com/nodejs/node/issues/59168#top
#65731https://github.com/nodejs/node/pull/65731
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
fsIssues and PRs related to file-system APIs and the fs module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22fs%22
regressionIssues related to regressions.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22regression%22
https://github.com/robhogan
robhoganhttps://github.com/robhogan
on Jul 22, 2025https://github.com/nodejs/node/issues/59168#issue-3252912861
#58939https://github.com/nodejs/node/issues/58939
https://github.com/jasnell
jasnellhttps://github.com/jasnell
on Jul 22, 2025https://github.com/nodejs/node/issues/59168#issuecomment-3103022361
#58939https://github.com/nodejs/node/issues/58939
@anonrighttps://github.com/anonrig
jasnellhttps://github.com/jasnell
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
fsIssues and PRs related to file-system APIs and the fs module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22fs%22
regressionIssues related to regressions.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22regression%22
on Jul 22, 2025https://github.com/nodejs/node/issues/59168#event-18753950689
robhoganhttps://github.com/robhogan
on Jul 22, 2025https://github.com/nodejs/node/issues/59168#event-18761369686
https://github.com/sommeeeer
sommeeeerhttps://github.com/sommeeeer
on Jul 26, 2025https://github.com/nodejs/node/issues/59168#issuecomment-3121486362
https://github.com/berenddeboer
berenddeboerhttps://github.com/berenddeboer
on Dec 3, 2025https://github.com/nodejs/node/issues/59168#issuecomment-3604976861
https://github.com/everett1992
everett1992https://github.com/everett1992
on Jun 3, 2026https://github.com/nodejs/node/issues/59168#issuecomment-4616165454
hairyfhttps://github.com/hairyf
on Sep 1, 2026https://github.com/nodejs/node/issues/59168#event-30342354611
fix(build): 修复 macOS / Linux 构建因悬垂符号链接失败 (#290)https://github.com/dsh-tauri/deepseek-harness-desktop/commit/8dfc2e2fc11b2e1667ce2c5c13f759a8c703bd55
#290https://github.com/dsh-tauri/deepseek-harness-desktop/pull/290
8dfc2e2https://github.com/dsh-tauri/deepseek-harness-desktop/commit/8dfc2e2fc11b2e1667ce2c5c13f759a8c703bd55
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#65731https://github.com/nodejs/node/pull/65731
on Sep 18, 2026https://github.com/nodejs/node/issues/59168#event-31368568445
nodejs-github-bothttps://github.com/nodejs-github-bot
on Sep 18, 2026https://github.com/nodejs/node/issues/59168#event-31368568462
fs: honor dereference for symlinks nested in cpSync treeshttps://github.com/nodejs/node/commit/cb736cf5c6bee6f1920d96b156e4312d85bab131
cb736cfhttps://github.com/nodejs/node/commit/cb736cf5c6bee6f1920d96b156e4312d85bab131
aduh95https://github.com/aduh95
on Sep 18, 2026https://github.com/nodejs/node/issues/59168#event-31401359092
fs: honor dereference for symlinks nested in cpSync treeshttps://github.com/nodejs/node/commit/cb9995be4d37c634ef9f70982d078a5ee79ce810
cb9995bhttps://github.com/nodejs/node/commit/cb9995be4d37c634ef9f70982d078a5ee79ce810
turmindhttps://github.com/turmind
on Sep 20, 2026https://github.com/nodejs/node/issues/59168#event-31482874818
test: contract tests for the three least-protected spines — AgentLoop…https://github.com/turmind/halo-agent/commit/647f1ab2291b360e9dfb3e28fce521800fc2927d
647f1abhttps://github.com/turmind/halo-agent/commit/647f1ab2291b360e9dfb3e28fce521800fc2927d
docs: sync design notes and channel docs for 1.3.2https://github.com/turmind/halo-agent/commit/62949575fcfd2c05117a73cb2f4fdb77a701235f
6294957https://github.com/turmind/halo-agent/commit/62949575fcfd2c05117a73cb2f4fdb77a701235f
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/59168
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/59168
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
fsIssues and PRs related to file-system APIs and the fs module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22fs%22
regressionIssues related to regressions.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22regression%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.