turbo icon indicating copy to clipboard operation
turbo copied to clipboard

Turbo gen hangs when used with `--root`

Open moltar opened this issue 1 year ago • 0 comments

Verify canary release

  • [X] I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

N/A

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

pnpm

What operating system are you using?

Mac

Which canary version will you have in your reproduction?

N/A

Describe the Bug

Warning: I use @turbo/gen directly in isolation, without turbo CLI.

When running gen from a workspace project, referencing the root, like so:

node_modules/.bin/gen run --root="../../"

Where ../../ is the workspace root (where .git dir is).

The CLI hangs, with node process taking 99% of the CPU and the process never exits.

Expected Behavior

Provide selection of generators.

To Reproduce

  1. Add @turbo/gen to a workspace sub-project
  2. node_modules/.bin/gen run --root="../../"

Additional context

N/A

moltar avatar Jul 10 '24 13:07 moltar