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): use relative .nxignore when walking workspace #20500

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

Cammisuli
Copy link
Member

@Cammisuli Cammisuli commented Nov 30, 2023

Current Behavior

When walking the workspace, we add .nxignore as a custom ignore file, but this was added as an absolute path. The underlying walk library assumed that any ignore files that are absolute should be used in every directory.

Expected Behavior

.nxignore is added as a relative file name, instead of absolute. This allows the walk library to only use nxignore files in the directory where it finds it. In other words, having an .nxignore in a directory will cause it to affect itself, and child directories.

Related Issue(s)

Fixes #20358

@Cammisuli Cammisuli requested review from a team as code owners November 30, 2023 14:16
Copy link

vercel bot commented Nov 30, 2023

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Nov 30, 2023 4:06pm

@Cammisuli Cammisuli mentioned this pull request Nov 30, 2023
4 tasks
@Cammisuli Cammisuli enabled auto-merge (squash) November 30, 2023 16:08
@Cammisuli Cammisuli disabled auto-merge November 30, 2023 16:11
@Cammisuli Cammisuli enabled auto-merge (squash) November 30, 2023 16:18
@Cammisuli Cammisuli merged commit ba7dd14 into nrwl:master Nov 30, 2023
6 checks passed
@Cammisuli Cammisuli deleted the fix/20358 branch November 30, 2023 19:17
Copy link

github-actions bot commented Dec 6, 2023

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 Dec 6, 2023
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.

Cannot ignore root directories
3 participants