-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
kind: bugSomething isn't workingSomething isn't workingneeds: triageNew issues get this label. Remove it after triageNew issues get this label. Remove it after triage
Description
Verify canary release
- I verified that the issue exists in the latest Turborepo canary release.
Link to code that reproduces this issue
https://github.com/OliverJAsh/turbo-watch-persistent-exit
Which canary version will you have in your reproduction?
2.4.5-canary.2
Environment information
CLI:
Version: 2.4.5-canary.2
Path to executable: /Users/oliver/Code/reduced-test-cases/turbo-watch-persistent-exit/node_modules/.pnpm/turbo-darwin-arm64@2.4.5-canary.2/node_modules/turbo-darwin-arm64/bin/turbo
Daemon status: Running
Package manager: pnpm9
Platform:
Architecture: aarch64
Operating system: macos
WSL: false
Available memory (MB): 5567
Available CPU cores: 10
Environment:
CI: None
Terminal (TERM): xterm-256color
Terminal program (TERM_PROGRAM): iTerm.app
Terminal program version (TERM_PROGRAM_VERSION): 3.5.11
Shell (SHELL): /run/current-system/sw/bin/fish
stdin: false
Expected behavior
When watching a persistent task, if the task exits with a non-zero exit code, watch
should also exit (like run
does).
Actual behavior
watch
does not exit.
To Reproduce
package.json
:
{
"packageManager": "pnpm@10.5.2",
"scripts": {
"server": "exit 1"
},
"dependencies": {
"turbo": "2.4.5-canary.2"
}
}
turbo.json
:
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"server": {
"persistent": true
}
}
}
Then run:
$ pnpm exec turbo watch server
Additional context
No response
Metadata
Metadata
Assignees
Labels
kind: bugSomething isn't workingSomething isn't workingneeds: triageNew issues get this label. Remove it after triageNew issues get this label. Remove it after triage