question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`implicitDependencies` dont work when `.gitignore` include the file

See original GitHub issue

Current 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. image

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:open
  • Created 2 years ago
  • Reactions:6
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Fuco1commented, Aug 18, 2022

Just bumped into this as well with an .env file defining some API URLs which are necessary during build-time webpack bundling.

1reaction
junekpavelcommented, Aug 15, 2022

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.

  Node : 16.16.0
   OS   : darwin x64
   yarn : 1.22.17
   
   nx : 14.5.6
   @nrwl/angular : 14.5.6
   @nrwl/cypress : 14.5.6
   @nrwl/detox : Not Found
   @nrwl/devkit : 14.5.6
   @nrwl/eslint-plugin-nx : 14.5.6
   @nrwl/express : Not Found
   @nrwl/jest : 14.5.6
   @nrwl/js : 14.5.6
   @nrwl/linter : 14.5.6
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : 14.5.6
   @nrwl/nx-cloud : 14.3.0
   @nrwl/nx-plugin : Not Found
   @nrwl/react : 14.5.6
   @nrwl/react-native : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : 14.5.6
   @nrwl/web : 14.5.6
   @nrwl/workspace : 14.5.6
   typescript : 4.7.4
   ---------------------------------------
   Local workspace plugins:
   ---------------------------------------
   Community plugins:
         @ionic/angular: 6.2.2
         @ngneat/transloco: 2.23.5
         @nguniversal/express-engine: 12.0.1
         rxjs: 6.6.3
         @nguniversal/builders: 12.0.0
         @nxext/capacitor: 14.0.0
         @nxext/ionic-angular: 14.0.0
         @storybook/angular: 6.5.10

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found