Replies: 1 comment 1 reply
-
I believe I've covered this requirement in this discussion: #9535 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
Non-goals
Background
The concept of optional dependencies isn't new, it just doesn't currently seem to be possible currently with Turborepo.
The main usecase is for situations where there is some sort of "lock" that prevents multiple tasks from interacting with one system at the same time.
Another alternative would be a "required resource" system, where resources can be checked out by a task and put back when complete, and only one task can have the allocation at a time. That would solve the conflict issue that I'm proposing this for, however feels more complex than optional dependencies, and would have less flexibility due to not allowing declaration of inherent order.
Proposal
My proposal for how this would work would be a new configuration option for tasks called
"dependsOnOptional"
(or a similar better name) that is used for ordering the dependency graph but does not add to it. I'm not familiar with Rust so I don't believe I'd be able to contribute this sorry.Beta Was this translation helpful? Give feedback.
All reactions