Have an option to fail on missing inputs #8342
JavaScriptBach
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Support an option that, if enabled, makes Turbo fail if a task has missing inputs.
Non-goals
No response
Background
I use Turbo in a large repo with lots of codegen. The codegen files are frequently in other workspaces and specified as relative paths, which go out of date as files move around. This leads to incorrect Turbo files that we discover much later after our builds are broken due to incorrect caching.
Conceptually I think it would be nice to support this. I get that Turbo is generous about missing things because of inheritance, but it also seems like a missing input file or a glob that matches zero files is very likely a bug on the developer's part.
Proposal
Expose this as an option in turbo.json
Beta Was this translation helpful? Give feedback.
All reactions