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(core): handle symlinks on debian for watch events #18636

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

Cammisuli
Copy link
Member

@Cammisuli Cammisuli commented Aug 15, 2023

Current Behavior

When running a yarn/pnpm workspace dependant libraries are symlinked in node_modules. On debian, when watch events are triggered from these dependent libraries, the symlink path is used (ie, workspace/pkgs/a/node_modules/pkgs/b/lib.ts) instead of their real path (workspace/pkgs/b/lib.ts). Because we implicity ignore all events from node_modules, these events never get pass the filter and we are never notified.

Expected Behavior

Paths are canonicalize to their real paths (only on debian)

Related Issue(s)

Fixes #18218

@vercel
Copy link

vercel bot commented Aug 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2023 3:43pm

@FrozenPandaz
Copy link
Collaborator

We will also need this for arch apparently, but we can do it as a followup

@FrozenPandaz FrozenPandaz merged commit cf0b2fd into nrwl:master Aug 16, 2023
15 checks passed
FrozenPandaz pushed a commit that referenced this pull request Aug 16, 2023
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2023
@Cammisuli Cammisuli deleted the fix_debian_watcher_symlinks branch August 24, 2023 12:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Native file watcher ignores files when .gitignore is present
2 participants