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

Inputs referencing files outside of a package don't affect the task hash #1913

@AlCalzone

Description

@AlCalzone

What version of Turborepo are you using?

1.4.6

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

Yarn v2/v3 (node_modules linker only)

What operating system are you using?

Linux

Describe the Bug

I've defined a task in my pipeline as follows:

		"lint": {
			"dependsOn": [],
			"inputs": [
				"!(build)/**/*.{ts,json}",
				// The style based linting tasks depend on the corresponding configuration in the repo root
				"../../.eslintrc.js",
				"../../.eslintignore",
				"../../.prettierrc.js",
				"../../.prettierignore",
				"../../tsconfig.eslint.json"
			],
			"outputs": []
		},

which is supposed to make the workspace tasks depend on the global configuration in the repo root.
According to #1064, this is supposed to be working, but even after changing .prettierrc.js, I'm getting cache hits instead of re-running the tasks.

Expected Behavior

The tasks should be re-run.

To Reproduce

  1. Have a task in a workspace depend on files outside the workspace.
  2. Run the task
  3. Change one of the referenced files outside the workspace
  4. Run the task again, see cache hit.

Metadata

Metadata

Assignees

No one assigned

    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