Skip to content

Commit a74131a

Browse files
committed
Add support for dependencies preparation to general:cache-dep-licenses task
The `general:cache-dep-licenses` task is used to generate metadata about the licenses of the project's dependencies. When using some dependency management systems, it is necessary to run an operation via the dependency management tool prior to generating the metadata. A task call was added to the `general:cache-dep-licenses` task in order to allow it to be used with such project types. It happens that such a preparatory operation is not necessary with the Go modules dependency management system used by this project, so the preparation task is left empty.
1 parent 252186a commit a74131a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: Taskfile.yml

+7
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ tasks:
157157
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies-task/Taskfile.yml
158158
general:cache-dep-licenses:
159159
desc: Cache dependency license metadata
160+
deps:
161+
- task: general:prepare-deps
160162
cmds:
161163
- |
162164
if ! which licensed &>/dev/null; then
@@ -215,6 +217,11 @@ tasks:
215217
cmds:
216218
- npx prettier --write .
217219

220+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-dependencies-task/Taskfile.yml
221+
general:prepare-deps:
222+
desc: Prepare project dependencies for license check
223+
# No preparation is needed for Go module-based projects.
224+
218225
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/go-task/Taskfile.yml
219226
go:build:
220227
desc: Build the Go code

0 commit comments

Comments
 (0)