-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[turborepo] Error while trying to run script with filter when filter eliminates all possible workspaces #3918
Comments
Hey @trappar, this should be fixed in 1.8.2 (released today)! |
Oops, sorry I was mistaken in the bug report. I'm actually already on 1.8.2, and it's still occurring. I'll update my original issue to reflect that. % turbo --version
1.8.2
% turbo --filter "[main]" lint
ERROR run failed: error preparing engine: Could not find the following tasks in project: lint
Turbo error: error preparing engine: Could not find the following tasks in project: lint Just double checked and both my globally installed and locally installed versions are at 1.8.2. |
@tknickman could you please reopen? 😅 This appears to be an unfixed edge case of the issue that was fixed in 1.8.2. |
Ah, my fault @trappar, sorry about that! We'll take a look. |
I am experiencing this issue as well. Thanks for taking a look! |
Thanks for the reporting @trappar and @tkstang! I was able to reproduce and the fix issue in #3951. We should hopefully get a new patch release out shortly (this issue will probably close on merge). The explanation for the bug is essentially the same as in #3896 (comment). Apologies for the inconvenience! |
Just an update: we released 1.8.3 with the fix: https://github.com/vercel/turbo/releases/tag/v1.8.3 |
I just created a new project and quick search on a similar error brought me here.
according to the docs, Understanding
|
@Tittoh good catch. Could you file a new issue to update the docs? If you don’t get to it I’ll make a note to do this on Monday! The error message did indeed change |
I got this error with |
@arantespp |
It's working now! It didn't work if I updated manually ( |
This issue can be resolved by downgrading the version to It's not an ideal solution. |
I'm seeing this issue as well yarn lint - works but when either task is run via lint-staged i get:
|
@magicspon since this is already closed a long time ago, can you please open a new issue (thanks for the repro!) |
What version of Turborepo are you using?
1.8.2
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
In my project, if I'm sitting in the main branch with a clean working copy and I try to run:
I get the following output
However, if I make a modification to a file in my monorepo's root that is not inside a specific package, and is not an input to any package, such as
.gitignore
, then I get the following output:Expected Behavior
I should not be getting this error, and turbo should instead simply run no tasks.
To Reproduce
In a monorepo with turborepo, checkout main/master with a clean working copy, then modify the project's
.gitignore
and try runningturbo --filter "[{branch}]" {script}
where{branch}
is your main/master branch and{script}
is any script configured in theturbo.json
pipelines.I just tested and this can be replicated using the starter monorepo created via
npx create-turbo@latest
Reproduction Repo
No response
The text was updated successfully, but these errors were encountered: