From 6c28d08599ad366e4e68a90631aa14a44c83fde1 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 6 Sep 2025 11:16:29 -0700 Subject: [PATCH] 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. --- Taskfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index 55c280e..aa4db9e 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -425,7 +425,7 @@ tasks: # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/poetry-task/Taskfile.yml poetry:install: desc: Install Poetry - run: once + run: when_changed cmds: - | if ! which pipx &>/dev/null; then