-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
What version of Turborepo are you using?
1.2.1
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Gitlab CI (shared gitlab.com runner) using Alpine docker image
Describe the Bug
I am trying to execute the lint
and test
commands against all changed packages since origin/main
but it doesn't appear to work. If I try to use the same filter in pnpm
it works as expected and executes them but when I try to use the same filter with turbo
it doesn't detect any changes.
❯ pnpm run lint --filter=...\[origin/main\]
Scope: 33 of 35 workspace projects
vs
❯ turbo run test --filter=\[origin/main\] --dry-run
Packages in Scope
Name Path
Tasks to Run
The command lint is defined in turbo.json
as:
"lint": {
"dependsOn": ["^build"],
"outputs": ["coverage/code-climate.json"],
"cache": false
},
Expected Behavior
I would expect the turbo
to match the behaviour of pnpm
and execute the command against all the changed packages compared to passed origin/main
-branch
To Reproduce
- Create a new branch of your repo
- Run
pnpm run lint --filter=[origin/main]
- Next, run
turbo run lint --filter=[origin/main]
- Notice that in last command for
turbo
no packages were executed
cmaycumber, mewhhaha, moderndegree, gnohj, madcowfred and 2 more
Metadata
Metadata
Assignees
Labels
No labels