Skip to content

Julia

Categories: julia

Renovate supports updating Julia dependencies.

File Matching

By default, Renovate will check any files matching the following regular expression: /(^|/)(Julia)?Project\.toml$/.

For details on how to extend a manager's managerFilePatterns value, please follow this link.

Supported datasources

This manager supports extracting the following datasources: julia.

Dependency types

This manager extracts the following depType values:

depType Description
deps A [compat] entry for a package in [deps]
weakdeps A [compat] entry for a package in [weakdeps], which extensions load
test A [compat] entry for a package in [extras] that [targets] lists for test
build A [compat] entry for a package in [extras] that [targets] lists for build only
extras A [compat] entry for a package in [extras] that no target lists
compat A [compat] entry for a package that no section lists

Default config

{
  "managerFilePatterns": [
    "/(^|/)(Julia)?Project\\.toml$/"
  ]
}

Additional Information

Extracts the [compat] entries of Julia Project.toml and JuliaProject.toml files. Each entry is looked up with the julia datasource and julia versioning, in the General registry by default. To match these dependencies by datasource in packageRules, use julia, also for packages in General: "matchDatasources": ["julia"].

To look packages up in other registries too, list them in registryUrls: General by name, as in Pkg, and the others by git URL. The others are cloned, which the Renovate admin must allow with allowCustomJuliaRegistries. The registries are tried in the listed order:

{
  "julia": {
    "registryUrls": ["General", "https://github.com/HolyLab/HolyLabRegistry"]
  }
}

With packageRules, some packages or some project files can have other registries:

{
  "packageRules": [
    {
      "matchManagers": ["julia"],
      "matchDepNames": ["CachedCalls"],
      "registryUrls": ["https://github.com/HolyLab/HolyLabRegistry"]
    },
    {
      "matchManagers": ["julia"],
      "matchFileNames": ["tools/**"],
      "registryUrls": ["General"]
    }
  ]
}

The manager skips:

  • the julia entry, which constrains the Julia version itself. Raising its lower bound drops support for older Julia versions, which is the maintainer's decision.
  • the standard libraries that ship only with Julia, such as LinearAlgebra and Test, because General has no versions for them. The list is fixed: if one of them is added to General later, the manager keeps skipping it until the list is updated.
  • a package that [sources] takes from a git repository or a local path.

A package's UUID comes from [deps], [weakdeps] or [extras], and only the package with that name and UUID matches. A package from a registry that is not listed then gets no updates, even if General has a package of that name. Its lookup fails on every run, as does the lookup of a package that no listed registry has. List their registry in registryUrls, or skip them by disabling them with packageRules:

{
  "packageRules": [
    {
      "matchManagers": ["julia"],
      "matchDepNames": ["MyPrivatePackage"],
      "enabled": false
    }
  ]
}

A package's depType is the section that lists it, deps, weakdeps or extras, or for a package in [extras], the target that [targets] lists it for, test or build. So matchDepTypes targets the test dependencies in [targets], and matchFileNames those in a test/Project.toml, which are deps of that file. For example, to group the updates of test dependencies:

{
  "packageRules": [
    {
      "matchManagers": ["julia"],
      "matchDepTypes": ["test"],
      "groupName": "test dependencies"
    },
    {
      "matchManagers": ["julia"],
      "matchFileNames": ["**/test/Project.toml"],
      "groupName": "test dependencies"
    }
  ]
}

The default rangeStrategy is widen, which adds a specifier for the new release, as CompatHelper does: "0.10, 0.11" with 0.12.1 becomes "0.10, 0.11, 0.12", and "0.12" with 1.9.24 becomes "0.12, 1".

The manager updates Project.toml only, not Manifest.toml.

With bumpVersion, it also increments the project's version.