root task lint (turbo run lint) looks like it invokes turbo and might cause a loop #5290
-
I got this bug when I use root task lint (turbo run lint) looks like it invokes turbo and might cause a loop
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
I've been experiencing the same issue since |
Beta Was this translation helpful? Give feedback.
-
Since we don't have any reproductions to look at, I'm going to have to assume that this is not a bug but, rather, that the folks here are running into a small protection that we have in place to make sure you don't recursively call For instance, if you have:
And try to run |
Beta Was this translation helpful? Give feedback.
-
In case anyone else runs into a 'looks like it invokes turbo and might cause a loop' error, I just got it in a new PNPM monorepo when I initially had a typo in my My guess is that the default workspace list that kicks in when you don't have one defined is root. |
Beta Was this translation helpful? Give feedback.
-
in my case I solved this problem with add a pnpm-workspace.yaml at root of project
|
Beta Was this translation helpful? Give feedback.
Since we don't have any reproductions to look at, I'm going to have to assume that this is not a bug but, rather, that the folks here are running into a small protection that we have in place to make sure you don't recursively call
turbo.
For instance, if you have:
And try to run
turbo lint
, that would be aturbo
command inside anotherturbo
command, which isn't something we want to support. Instead, you would want to use your package manager to run thelint
command (e.g.npm run lint
,pnpm lint
, etc.).