`implicitDependencies` dont work when `.gitignore` include the file
See original GitHub issueCurrent Behavior
I create custom executor(ts) and add the output file to project graph by implicitDependencies
.
But it cant work when .gitignore
include the output file, so cache never be broken.
Expected Behavior
I think files in implicitDependencies
should always add to project graph even they are included in .gitignore
.
Steps to Reproduce
This issue may not be prioritized if details are not provided to help us reproduce the issue.
Failure Logs
Environment
nx:12.17.1
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:16 (2 by maintainers)
Top Results From Across the Web
git - Gitignore not working - Stack Overflow
This removes any changed files from the index(staging area), then just run: git add . Commit it: git commit -m ".gitignore is now...
Read more >gitignore Documentation - Git
gitignore - Specifies intentionally untracked files to ignore ... It is not possible to re-include a file if a parent directory of that...
Read more >Proon NPM | npm.io
proon. A tool to check for unused and unspecified dependencies. What it does. proon will traverse over the source code in a directory...
Read more >sisal-bet-module - npm
as any is allowed only when typescript does not allow to express that type ... and ignore <files> to identify the addition of...
Read more >Ignore files in your Git repo - Azure - Microsoft Learn
Not every file in your project should be tracked by Git. ... Typically, you'll just add a .gitignore file to the root folder...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just bumped into this as well with an
.env
file defining some API URLs which are necessary during build-time webpack bundling.Hi, are there any updates in this?
Our applications builds are also depending on files generated by external service, whose are ignored by git.
We were quite fine with manually clearing cache when those file changed, but now we starting to use Nx Cloud and this is something we really struggle with.
All of things mentioned above, we also tried specifying project inputs (https://nx.dev/configuration/projectjson#inputs-&-namedinputs), but without any success.
Or is there anyone who at least figured out a workaround?
Update, adding output of nx report.