turbo
turbo copied to clipboard
v2 global installation does not infer 1.x installed in repository
Verify canary release
- [X] I verified that the issue exists in the latest Turborepo canary release.
Link to code that reproduces this issue
https://github.com/4leite/my-turborepo
https://github.com/4leite/my-turborepo/actions/runs/9378148823/job/25820887745
What package manager are you using / does the bug impact?
npm
What operating system are you using?
Linux
Which canary version will you have in your reproduction?
n/a
Describe the Bug
Existing github actions using:
npx -y turbo build --dry-run=json --filter=...[$1]
will pull the latest version v2.x and fails to parse the existing json due to breaking changes.
Expected Behavior
Not sure, but I'm documenting the workaround here, because it was not immediately obvious that a new release had happened or why my build stopped working.
To Reproduce
Any v1 json running:
npx -y turbo build --dry-run=json
Additional context
Workaround is to pin the version of turbo at v1
npx -y turbo@1 build --dry-run=json