Skip to content

Commit 7814917

Browse files
committed
Add support for prep processes to dependencies license check
For some types of dependency management frameworks, it is necessary to run some operation before the check for unapproved dependency license types. No preparation is needed for Go module-based projects like this one, so the preparation task is left empty, but this is a copy of a "template" asset that is intended to be a "template" that is generally applicable to projects of any type so the change is brought solely in order to keep the file in sync with the upstream source.
1 parent e10da07 commit 7814917

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Taskfile.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ tasks:
257257
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies-task/Taskfile.yml
258258
general:cache-dep-licenses:
259259
desc: Cache dependency license metadata
260+
deps:
261+
- task: general:prepare-deps
260262
cmds:
261263
- |
262264
if ! which licensed &>/dev/null; then
@@ -295,6 +297,11 @@ tasks:
295297
cmds:
296298
- poetry run codespell --write-changes
297299

300+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-dependencies-task/Taskfile.yml
301+
general:prepare-deps:
302+
desc: Prepare project dependencies for license check
303+
# No preparation is needed for Go module-based projects.
304+
298305
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-yaml-task/Taskfile.yml
299306
yaml:lint:
300307
desc: Check for problems with YAML files

0 commit comments

Comments
 (0)