-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Remove default task outputs when outputs is not defined #2712
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
Remove default task outputs when outputs is not defined #2712
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Ignored Deployments
|
This behavior is frameworks-specific and unintuitive to new users. Specifically, this removes the confusion between omitting the outputs key and setting to an empty array. Additionally, this will allow us to more clearly define turbo.json composition, so locally-scoped turbo.json configs can override outputs, without rationalizing what happens to this implicit behavior.
🟢 CI successful 🟢Thanks |
a9ea366
to
6ea1478
Compare
This will require a turbo codemod. |
yep, separate PR, but will land before 1.7 is released |
@@ -21,8 +21,6 @@ const ( | |||
topologicalPipelineDelimiter = "^" | |||
) | |||
|
|||
var defaultOutputs = TaskOutputs{Inclusions: []string{"dist/**/*", "build/**/*"}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm like 99.999% confident that dist/**/*
and dist/**
are equivalent in doublestar, but I'd love to be 100% sure. Can you triple-check that for us?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll just fix the codemod to use the same glob as here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are
This behavior is frameworks-specific and unintuitive to new users.
Specifically, this removes the confusion between omitting the outputs
key and setting to an empty array. Additionally, this will allow us to
more clearly define turbo.json composition, so locally-scoped turbo.json
configs can override outputs, without rationalizing what happens to this
implicit behavior.
Stacked PRs:
turbo@1.7