-
Notifications
You must be signed in to change notification settings - Fork 2k
Caret (^) isn't correctly evaluated for phantom Turbo tasks #10109
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
Comments
Hi, thanks for the issue. I think I see the problem.
This task definition declares that for a given
This declares that each Let me know if that makes sense or if I missed something! |
I see, I think I misinterpreted how caret works then. I thought For more context, it's not correct for me to say that However, some tasks need the ability to say that "I depend on the recursive transpilation of package Foo along with its dependency tree". In order to accomplish this, I defined the phantom task |
OK, I was able to fix my Turbo file to my liking. Thanks @NicholasLYang for your help. Would you consider changing the documentation in https://turbo.build/repo/docs/crafting-your-repository/configuring-tasks#depending-on-tasks-in-dependencies-with-?
"Bottom of the dependency graph" sounds like it is doing some sort of recursive dependency lookup, but that's not what's happening here. |
@JavaScriptBach, thank you for pointing that out. Will fix as soon as I can. |
Verify canary release
Link to code that reproduces this issue
https://github.com/JavaScriptBach/turbo-caret-bug
Which canary version will you have in your reproduction?
2.4.5-canary.1
Enviroment information
Expected behavior
In my repository, I have tasks defined in turbo.json that contain a
dependsOn
but don't have an accompanying implementation inpackage.json
. I use these "phantom" tasks as a way to specify relationships between real tasks and also to DRY between many packages in a mono-repo.The problem is that the caret (^) behavior is not correctly evaluated when running a phantom task. If I have packages a, b, c where c depends on b which depends on a, then running
turbo c#my-task
does not run a's tasks, even when the dependency chain is properly set up.See https://github.com/JavaScriptBach/turbo-caret-bug
Actual behavior
See https://github.com/JavaScriptBach/turbo-caret-bug
To Reproduce
See https://github.com/JavaScriptBach/turbo-caret-bug
Additional context
No response
The text was updated successfully, but these errors were encountered: