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

Turborepo hangs when a package depends on itself #1117

@gsoltis

Description

@gsoltis

What version of Turborepo are you using?

1.2.5

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

npm, pnpm, Yarn v1, Yarn v2/v3 (node_modules linker only)

What operating system are you using?

Mac

Describe the Bug

turbo run build will hang if a package declares a dependency on itself in its package.json file.

Expected Behavior

turbo should display an error and exit with a non-zero exit code when it encounters invalid dependency trees.

To Reproduce

Edit one of the examples to have a package depend on itself, run turbo run build

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions