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

Turbo gets stuck on circular dependencies #262

@jakst

Description

@jakst

What version of Turborepo are you using?

1.0.9

Describe the Bug

Our monorepo contains a few circular dependencies. We are actively working to remove them, but have some more work to do there.

When running for example yarn turbo run build with config "dependsOn": ["^build"], turborepo will just get stuck after printing • Running lint in 89 packages. I assume it's going into an endless loop as CPU usage goes up significantly.

Expected Behavior

It would be nice if turbo threw a warning and exited gracefully on this. Preferably including a description of the dependency circle (can sometimes be several packages long).

To Reproduce

  • Init a new repo with turbo
  • Point two packages at each other in respective package.json
  • Make sure "build": { "dependsOn": ["^build"] } is set in the pipeline config
  • run yarn turbo run build

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions