You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cli): no longer attempt to parse task name as continue value (#10097)
### Description
#10023 added values for the `--continue` flag, but this unintentionally
broke commands such as `turbo --continue build` as `build` would be
interpreted as a `continue` value
### Testing Instructions
Added failing test for the previous breakage and updated snapshots.
Copy file name to clipboardexpand all lines: docs/repo-docs/reference/run.mdx
+4-4
Original file line number
Diff line number
Diff line change
@@ -121,15 +121,15 @@ turbo run build --concurrency=50%
121
121
turbo run test --concurrency=5
122
122
```
123
123
124
-
### `--continue<option>`
124
+
### `--continue[=<option>]`
125
125
126
126
Default: `never`
127
127
128
128
Specify how `turbo` should handle current and pending tasks in the presence of an error (e.g. non-zero exit code from a task).
129
129
130
-
- When `--continue` is `never` and an error occurs, `turbo` will cancel all tasks.
131
-
- When `--continue` is `dependencies-successful` and an error occurs, `turbo` will cancel dependent tasks. Tasks whose dependencies have succeeded will continue to run.
132
-
- When `--continue` is `always` and an error occurs, `turbo` will continue running all tasks, even those whose dependencies have failed.
130
+
- When `--continue=never` and an error occurs, `turbo` will cancel all tasks.
131
+
- When `--continue=dependencies-successful` and an error occurs, `turbo` will cancel dependent tasks. Tasks whose dependencies have succeeded will continue to run.
132
+
- When `--continue=always` and an error occurs, `turbo` will continue running all tasks, even those whose dependencies have failed.
133
133
- When `--continue` is specified without a value, it will default to `always`.
134
134
135
135
In all cases, `turbo` will exit with the highest exit code value encountered during execution.
Copy file name to clipboardexpand all lines: turborepo-tests/integration/tests/no-args.t
+1-1
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ Make sure exit code is 2 when no args are passed
98
98
Override the filesystem cache directory
99
99
--concurrency <CONCURRENCY>
100
100
Limit the concurrency of task execution. Use 1 for serial (i.e. one-at-a-time) execution
101
-
--continue [<CONTINUE>]
101
+
--continue[=<CONTINUE>]
102
102
Specify how task execution should proceed when an error occurs. Use "never" to cancel all tasks. Use "dependencies-successful" to continue running tasks whose dependencies have succeeded. Use "always" to continue running all tasks, even those whose dependencies have failed [default: never] [possible values: never, dependencies-successful, always]
Copy file name to clipboardexpand all lines: turborepo-tests/integration/tests/turbo-help.t
+2-2
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ Test help flag
98
98
Override the filesystem cache directory
99
99
--concurrency <CONCURRENCY>
100
100
Limit the concurrency of task execution. Use 1 for serial (i.e. one-at-a-time) execution
101
-
--continue [<CONTINUE>]
101
+
--continue[=<CONTINUE>]
102
102
Specify how task execution should proceed when an error occurs. Use "never" to cancel all tasks. Use "dependencies-successful" to continue running tasks whose dependencies have succeeded. Use "always" to continue running all tasks, even those whose dependencies have failed [default: never] [possible values: never, dependencies-successful, always]
103
103
--single-package
104
104
Run turbo in single-package mode
@@ -273,7 +273,7 @@ Test help flag
273
273
--concurrency <CONCURRENCY>
274
274
Limit the concurrency of task execution. Use 1 for serial (i.e. one-at-a-time) execution
275
275
276
-
--continue [<CONTINUE>]
276
+
--continue[=<CONTINUE>]
277
277
Specify how task execution should proceed when an error occurs. Use "never" to cancel all tasks. Use "dependencies-successful" to continue running tasks whose dependencies have succeeded. Use "always" to continue running all tasks, even those whose dependencies have failed
0 commit comments