Skip to content

Commit a1752be

Browse files
committed
WIP
1 parent e6bfadf commit a1752be

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

turborepo-tests/integration/tests/recursive-turbo.t

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ sed replaces the square brackets with parentheses so prysk can parse the file pa
66
\xe2\x80\xa2 Packages in scope: //, another, my-app, util (esc)
77
\xe2\x80\xa2 Running something in 4 packages (esc)
88
\xe2\x80\xa2 Remote caching disabled (esc)
9-
x root task //#something (turbo run build) looks like it invokes turbo and
10-
| might cause a loop
11-
,-\(.*package.json:3:1\) (re)
9+
recursive_turbo_invocations (https://turbo.build/messages/recursive-turbo-invocations)
10+
11+
x Your `package.json` script looks like it invokes a Root Task (//
12+
| #something), creating a loop of `turbo` invocations. You likely have
13+
| misconfigured your scripts and tasks or your package manager's Workspace
14+
| structure.
15+
,-\(.*package.json:3:1\) (re)
16+
1217
3 | "scripts": {
1318
4 | "something": "turbo run build"
1419
: ^^^^^^^^|^^^^^^^^
15-
: `-- task found here
20+
: `-- This script calls `turbo`, which calls the script, which calls `turbo`...
1621
5 | },
1722
`----
1823

turborepo-tests/integration/tests/run/missing-tasks.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ Setup
3030
$ ${TURBO} run something --dry > OUTPUT 2>&1
3131
[1]
3232
$ grep --quiet -E "root task (//#)?something \(turbo run build\) looks like it invokes turbo and" OUTPUT
33+
[1]
3334
$ grep --quiet -E "might cause a loop" OUTPUT
35+
[1]
3436

3537
# Bad command
3638

3739
$ ${TURBO} run something > OUTPUT2 2>&1
3840
[1]
3941
$ grep --quiet -E "root task (//#)?something \(turbo run build\) looks like it invokes turbo and" OUTPUT
42+
[1]
4043
$ grep --quiet -E "might cause a loop" OUTPUT
44+
[1]

0 commit comments

Comments
 (0)