这是indexloc提供的服务,不要输入任何密码
Skip to content

Cache miss even when inputs pattern is specified to run in particular folder #1085

@nazimamin

Description

@nazimamin

What version of Turborepo are you using?

1.2.4

What package manager are you using / does the bug impact?

Yarn v1

What operating system are you using?

Mac

Describe the Bug

Tasks are being re-run even when inputs is specified and files are changed outside the inputs pattern.

"lint": { "outputs": [], "inputs": ["pages/**"] },

``

Expected Behavior

If inputs pattern is defined, tasks should only run for patterns that are defined in inputs

To Reproduce

  1. Clone : https://github.com/nazimamin/turbo-repo-test
  2. Yarn install
  3. Run yarn lint
  4. Run yarn lint again (Full Turbo)
  5. cd into apps/docs folder
  6. change something in README.md file
  7. Re-run yarn lint -> You'll notice that we get cache miss and docs build is being re-run. We expect the docs build not to re-run because inputs is specified to only re-rerun if anything in the pages folder has changed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions