Skip to content
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

Issue #715: Specify run: once in default scaffold Taskfile.yml #716

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

quicksketch
Copy link
Member

Fixes #715

Comment on lines +17 to +20
# Only allow tasks to be run once per task invocation. This ensures that
# multiple dependencies on the same task are only run once.
# @see https://github.com/go-task/task/issues/812
run: once
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So does this pass down to included task files as well? Or just tasks declared here directly?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure. The official documentation is at https://taskfile.dev/usage/#limiting-when-tasks-run (maybe we should reference that rather than the GitHub issue). I'm expecting it only works within the current file, considering variables need to be manually passed to includes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use "run: once" by default in the scaffold Taskfile.yml template
2 participants