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

Can't declare dependency on root task #1471

@trevorr

Description

@trevorr

What version of Turborepo are you using?

1.3.1

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

pnpm

What operating system are you using?

Mac

Describe the Bug

Adding a root task (added in #1040) to a pipeline dependsOn often results in an error, such as:

ERROR  error preparing engine: found reference to unknown package: // in task //#generate-shared1

Sample turbo.json

Expected Behavior

I expected root task dependencies to work like other explicit package-task dependencies.

To Reproduce

https://github.com/trevorr/turborepo-root-dep-test is a minimal repository with instructions for reproducing the issue. Running the few commands in the README.md will produce the error above.

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