Skip to content

Commit 6c28d08

Browse files
committed
Use more appropriate run key configuration for poetry:install task
The "Task" task runner tool is used to perform common development operations for the project. Tasks may call other tasks. Under certain conditions, this can result in the same task being called redundantly. This can be avoided by using the `run` key to configure the task so that redundant calls will be skipped. Previously, the `poetry:install` task's `run` key was set to `once`, which causes all but the first call will be skipped. A safer configuration is `when_changed`, which will skip subsequent calls, unless the task configuration has changed.
1 parent b0ed02a commit 6c28d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ tasks:
425425
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/poetry-task/Taskfile.yml
426426
poetry:install:
427427
desc: Install Poetry
428-
run: once
428+
run: when_changed
429429
cmds:
430430
- |
431431
if ! which pipx &>/dev/null; then

0 commit comments

Comments
 (0)