Option to disable parent ".gitignore" scan #34800
kaiguogit
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Request: Config option to disable parent
.gitignorescanningCurrent Behavior
Since PR #31911, Nx now scans parent
.gitignorefiles to determine which files to ignore. This breaks our workflow.Our Use Case
We use Nx in a monorepo with 100+ developers, containing both C code (not managed by Nx) and TypeScript code (managed by Nx).
Repository structure:
The Problem
We generate JSON schema files from C code and store them in
c-schema/(gitignored). We intentionally track these as Nx inputs via a custom plugin:{ "name": "c-schema:table1", "inputs": ["{projectRoot}/table1.json"] }Then our TS libraries depend on these:
{ "name": "lib1", "dependsOn": [{"project": "c-schema:table1", "target": "build"}] }Since PR #31911, parent
.gitignoreentries are now respected, preventing us from using these generated files as Nx inputs.Proposed Solution
Add a configuration option in
nx.jsonto disable parent.gitignorescanning:{ "checkParentGitignore": false }Why We Can't Work Around This
Beta Was this translation helpful? Give feedback.
All reactions