dependencies
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/stuttgart-things/dagger/dependencies@v0.47.0Entrypoint
Return Type
Dependencies Example
dagger -m github.com/stuttgart-things/dagger/dependencies@8481f7c326fd408bf4fec6dd96c4a34d0adb1701 call \
func (m *MyModule) Example() *dagger.Dependencies {
return dag.
Dependencies()
}@function
def example() -> dagger.Dependencies:
return (
dag.dependencies()
)@func()
example(): Dependencies {
return dag
.dependencies()
}Types
Dependencies 🔗
renovateDryRun() 🔗
DryRun runs Renovate in dry-run mode against a repository and returns all findings
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repo | String ! | - | Repository to scan (e.g., "owner/repo" or "stuttgart-things/dagger") |
| githubToken | Secret ! | - | GitHub token for authentication (required) |
| config | File | - | Optional: Renovate configuration file from the repository |
Example
dagger -m github.com/stuttgart-things/dagger/dependencies@8481f7c326fd408bf4fec6dd96c4a34d0adb1701 call \
renovate-dry-run --repo string --github-token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, repo string, githubToken *dagger.Secret) string {
return dag.
Dependencies().
RenovateDryRun(ctx, repo, githubToken)
}@function
async def example(repo: str, github_token: dagger.Secret) -> str:
return await (
dag.dependencies()
.renovate_dry_run(repo, github_token)
)@func()
async example(repo: string, githubToken: Secret): Promise<string> {
return dag
.dependencies()
.renovateDryRun(repo, githubToken)
}updateAnsibleRequirements() 🔗
UpdateAnsibleRequirements checks for updates to Ansible collections in requirements.yaml and returns a report of available updates
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| requirementsFile | File ! | - | Path to the requirements.yaml file to check |
| githubToken | Secret | - | Optional: GitHub token for checking custom collection releases |
Example
dagger -m github.com/stuttgart-things/dagger/dependencies@8481f7c326fd408bf4fec6dd96c4a34d0adb1701 call \
update-ansible-requirements --requirements-file file:pathfunc (m *MyModule) Example(ctx context.Context, requirementsFile *dagger.File) string {
return dag.
Dependencies().
UpdateAnsibleRequirements(ctx, requirementsFile)
}@function
async def example(requirements_file: dagger.File) -> str:
return await (
dag.dependencies()
.update_ansible_requirements(requirements_file)
)@func()
async example(requirementsFile: File): Promise<string> {
return dag
.dependencies()
.updateAnsibleRequirements(requirementsFile)
}updateAnsibleRequirementsAndApply() 🔗
UpdateAnsibleRequirementsAndApply checks for updates and applies them to the requirements file
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| requirementsFile | File ! | - | Path to the requirements.yaml file to update |
| collectionsToUpdate | String ! | - | Collections to update (comma-separated, e.g., "community.general,kubernetes.core") Use "all" to update all collections |
| githubToken | Secret | - | Optional: GitHub token for checking custom collection releases |
Example
dagger -m github.com/stuttgart-things/dagger/dependencies@8481f7c326fd408bf4fec6dd96c4a34d0adb1701 call \
update-ansible-requirements-and-apply --requirements-file file:path --collections-to-update stringfunc (m *MyModule) Example(requirementsFile *dagger.File, collectionsToUpdate string) *dagger.File {
return dag.
Dependencies().
UpdateAnsibleRequirementsAndApply(requirementsFile, collectionsToUpdate)
}@function
def example(requirements_file: dagger.File, collections_to_update: str) -> dagger.File:
return (
dag.dependencies()
.update_ansible_requirements_and_apply(requirements_file, collections_to_update)
)@func()
example(requirementsFile: File, collectionsToUpdate: string): File {
return dag
.dependencies()
.updateAnsibleRequirementsAndApply(requirementsFile, collectionsToUpdate)
}applyAnsibleUpdates() 🔗
ApplyAnsibleUpdates checks for updates and applies ALL available updates to the requirements file This is a convenience function that automatically updates all collections to their latest versions
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| requirementsFile | File ! | - | Path to the requirements.yaml file to update |
| githubToken | Secret | - | Optional: GitHub token for checking custom collection releases |
Example
dagger -m github.com/stuttgart-things/dagger/dependencies@8481f7c326fd408bf4fec6dd96c4a34d0adb1701 call \
apply-ansible-updates --requirements-file file:pathfunc (m *MyModule) Example(requirementsFile *dagger.File) *dagger.File {
return dag.
Dependencies().
ApplyAnsibleUpdates(requirementsFile)
}@function
def example(requirements_file: dagger.File) -> dagger.File:
return (
dag.dependencies()
.apply_ansible_updates(requirements_file)
)@func()
example(requirementsFile: File): File {
return dag
.dependencies()
.applyAnsibleUpdates(requirementsFile)
}