Renovate is an alternative to Dependabot or CompatHelper for keeping dependencies up to date. Renovate and Dependabot both support multiple programming language ecosystems, so you can use one tool for multiple ecosystems.
Renovate supports Julia from version 44.221.0, and other registries than General from 44.252.0. Unlike Dependabot, it is not tied to GitHub: it runs on most platforms, including GitHub (e.g. with the Mend Renovate GitHub app), GitLab, Azure DevOps, Bitbucket, Gitea and Forgejo. It can even be run locally (see below for details).
It updates the [compat] entries of every Project.toml (and JuliaProject.toml) in the repository, docs/ and test/ included, against the General registry by default. As CompatHelper and Dependabot do, it widens the range by default: "0.10, 0.11" with 0.12.1 released becomes "0.10, 0.11, 0.12", and "0.12" with 1.9.24 released becomes "0.12, 1". It skips the julia entry and the standard libraries. Update PRs include the package’s release notes and changelog.
Exact pins stay exact, even with the default widen range strategy: "=0.2.304" is updated to the new version’s exact pin. To explicitly pin dependencies, set Renovate’s rangeStrategy to "pin". Other range strategies are listed in Renovate’s Julia versioning documentation.
A renovate.json like the following is sufficient - in combination with a runner such as the Renovate GitHub App:
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"]
}
As demonstrated by GitHub - stemann/RenovateExample.jl · GitHub, with Dependency Dashboard · Issue #1 · stemann/RenovateExample.jl · GitHub.
Renovate’s packageRules can match test dependencies, whether they’re in [targets] or in test/Project.toml, for example to group their updates:
{
"packageRules": [
{
"matchManagers": ["julia"],
"matchDepTypes": ["test"],
"groupName": "test dependencies"
},
{
"matchManagers": ["julia"],
"matchFileNames": ["**/test/Project.toml"],
"groupName": "test dependencies"
}
]
}
With "bumpVersion": "patch", an update also increments the project’s version.
Other registries
To look packages up in other registries too, private ones included, list them in registryUrls: General by name, as in Pkg, and the others by git URL. They are tried in the listed order:
{
"julia": {
"registryUrls": ["General", "https://github.com/HolyLab/HolyLabRegistry"]
}
}
registryUrls also works in packageRules, for some packages or some project files. Registries other than General are cloned, which the Renovate admin must allow with allowCustomJuliaRegistries. For a private registry over HTTPS, add its credentials as a host rule with hostType julia.
Documentation: Automated Dependency Updates for Julia - Mend Renovate CLI Docs and Julia - Mend Renovate CLI Docs
Self-hosting
Running locally, e.g. for self-hosting a Renovate runner for GitLab, can be accomplished with:
RENOVATE_PLATFORM=gitlab \
RENOVATE_TOKEN=secret_token_for_your_gitlab_user \
npx --yes renovate@44.252.0
Also consider env vars, LOG_LEVEL=debug, and, e.g., RENOVATE_DRY_RUN=lookup when testing - and whether to set RENOVATE_AUTODISCOVER=true or list the repositories that Renovate should process with RENOVATE_REPOSITORIES. To allow other registries, set RENOVATE_ALLOW_CUSTOM_JULIA_REGISTRIES=true.
Pending changes
Notable pending enhancements:
- updating
Manifest.toml: feat(manager/julia): update `Manifest.toml` - Pull Request #47788 - renovatebot/renovate - GitHub - reading locked versions from the manifest, needed for vulnerability alerts from the Julia Security Advisory Database: feat(manager/julia): extract locked versions - Pull Request #47863 - renovatebot/renovate - GitHub