turbo: [turborepo] `turbo run` exits prematurely with code 2
What version of Turborepo are you using?
1.10.2 (same problem with 1.10.3-canary.0)
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Linux
Describe the Bug
I have a monorepo setup with 2 commands: lint and clean.
// turbo.json
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"lint": {},
"clean": {
"cache": false
}
},
"globalDependencies": [
"tsconfig.json",
"configs/**",
"lib/eslint-plugin/configs/**"
]
}
In a Docker image (Ubuntu 22.04-based), we run:
export TURBO_LOG_LEVEL=TRACE
pnpm turbo run lint --parallel --no-update-notifier --verbosity 3
While it works 100% correctly with turbo@1.10.1, after upgrading to 1.10.2, turbo started to exit prematurely with code 2, not running anything. The log looks like this:
[2023-06-09T10:56:12.100Z] 2023-06-09T10:55:03.129+0000 [DEBUG] turborepo_lib::shim: Global turbo version: 1.10.2
[2023-06-09T10:56:12.100Z] 2023-06-09T10:55:03.131+0000 [DEBUG] turborepo_lib::shim: No local turbo binary found at: /usr/src/go.git/node/node_modules/turbo-linux-64/bin/turbo
[2023-06-09T10:56:12.101Z] 2023-06-09T10:55:03.131+0000 [DEBUG] turborepo_lib::shim: No local turbo binary found at: /usr/src/go.git/node/node_modules/turbo/node_modules/turbo-linux-64/bin/turbo
[2023-06-09T10:56:12.101Z] 2023-06-09T10:55:03.131+0000 [DEBUG] turborepo_lib::shim: Local turbo path: /usr/src/go.git/node/node_modules/.pnpm/turbo-linux-64@1.10.2/node_modules/turbo-linux-64/bin/turbo
[2023-06-09T10:56:12.101Z] 2023-06-09T10:55:03.131+0000 [DEBUG] turborepo_lib::shim: Local turbo version: 1.10.2
[2023-06-09T10:56:12.101Z] 2023-06-09T10:55:03.131+0000 [DEBUG] turborepo_lib::shim: Repository Root: /usr/src/go.git/node
[2023-06-09T10:56:12.101Z] 2023-06-09T10:55:03.131+0000 [DEBUG] turborepo_lib::shim: Running local turbo binary in /usr/src/go.git/node/node_modules/.pnpm/turbo-linux-64@1.10.2/node_modules/turbo-linux-64/bin/turbo
[2023-06-09T10:56:12.101Z]
[2023-06-09T10:56:12.101Z] 2023-06-09T10:55:03.131+0000 [DEBUG] turborepo_lib::shim: supports_skip_infer_and_single_package true
[2023-06-09T10:56:12.101Z] 2023-06-09T10:55:03.139Z [DEBUG] turbo: build tag: rust
[2023-06-09T10:56:12.101Z] 2023-06-09T10:55:03.566Z [INFO] turbo: skipping turbod since we appear to be in a non-interactive context
[2023-06-09T10:56:12.101Z] 2023-06-09T10:55:03.567Z [DEBUG] turbo: global hash env vars: vars=[]
[2023-06-09T10:56:12.101Z] 2023-06-09T10:55:03.572Z [DEBUG] turbo: global hash: value=fed74f850fb476d9
[2023-06-09T10:56:12.101Z] 2023-06-09T10:55:03.572Z [DEBUG] turbo: local cache folder: path=""
[2023-06-09T10:56:12.101Z] + status=2
[2023-06-09T10:56:12.101Z] + echo 'turbo run exited with 2'
[2023-06-09T10:56:12.101Z] + exit 2
Expected Behavior
What worked in 1.10.1, should continue working in 1.10.2.
To Reproduce
export TURBO_LOG_LEVEL=TRACE
pnpm turbo run lint --parallel --no-update-notifier --verbosity 3
Unfortunately, I cannot provide sources 🤷
Reproduction Repo
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 15 (7 by maintainers)
@be9 Got it. To be clear,
gitis not a strict dependency and is occasionally not present in docker containers, I just was curious if I could narrow down the bug to the fallback code.I will keep digging and see what I can come up with.