Skip to content

Add support for dependencies preparation to general:cache-dep-licenses task #147

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

Merged
merged 1 commit into from
Apr 26, 2025

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Apr 26, 2025

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. Since this task is a standardized "asset" which is intended to be usable with any project, a call to a general:prepare-deps task was added to the general:cache-dep-licenses task in order to allow it to be used with such project types.

The operation required by the specific dependencies management system in use is performed in the general:prepare-deps task. It happens that such a preparatory operation is not necessary with the Go modules dependency management system, so an empty task is provided for use in Go module-based projects.

Since this project is Go module-based, the change is not essential. However, it is best to keep the asset in sync with the upstream copy to facilitate maintenance of the project infrastructure.

…es` 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. Since this task is a standardized "asset" which is intended to be usable with any
project, a call to a `general:prepare-deps` task was added to the `general:cache-dep-licenses` task in order to allow it
to be used with such project types.

The operation required by the specific dependencies management system in use is performed in the `general:prepare-deps`
task. It happens that such a preparatory operation is not necessary with the Go modules dependency management system, so
an empty task is provided for use in Go module-based projects.

Since this project is Go module-based, the change is not essential. However, it is best to keep the asset in sync with
the upstream copy to facilitate maintenance of the project infrastructure.
@per1234 per1234 added type: enhancement Proposed improvement topic: infrastructure Related to project infrastructure labels Apr 26, 2025
@per1234 per1234 self-assigned this Apr 26, 2025
@per1234 per1234 merged commit af37079 into arduino:master Apr 26, 2025
29 checks passed
@per1234 per1234 deleted the prepare-dependencies-task branch April 26, 2025 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant