Skip to content

Dependabot cannot update Rust dependencies: cargo workspace with path deps inside a submodule #76

Open

Description

@JuroOravec

Dependabot's cargo ecosystem is turned off in
.github/dependabot.yml because it cannot read this
repository's workspace. Every run failed, so the entry reported nothing while
looking like coverage. This issue records why, and what has to change before it
can come back.

What breaks

The root Cargo.toml declares 17 path dependencies pointing into
third_party/rust/ruff, which is a git submodule and a cargo workspace of its
own. In this repository that submodule is a single gitlink:

160000 commit 45bbb4cb...    third_party/rust/ruff

so its manifests are not in the tree Dependabot reads. Both available settings
dead-end:

Without exclude-paths, file fetching aborts:

Error during file fetching; aborting:
  /third_party/rust/ruff/crates/citry_core_py/Cargo.toml not found

citry_core_py is a member of our workspace, looked up under the submodule's
workspace root.

With exclude-paths: ["third_party/**"], fetching succeeds and cargo fails
instead:

failed to load manifest for workspace member `crates/citry_core_py`
Caused by: ... ruff_python_ast
Caused by: failed to read `third_party/rust/ruff/crates/ruff_python_ast/Cargo.toml`
Caused by: No such file or directory

Including the directory and excluding it are both wrong, because the files are
absent either way and cargo needs them to resolve the workspace.

What this costs

No Rust dependency updates and, more importantly, no Rust security updates
arrive automatically. Every external Rust dependency is declared in the root
[workspace.dependencies], so none of them are reachable. Ruff itself is not
affected: it moves through the submodule pointer rather than through Cargo.

Upstream

Reported at
dependabot/dependabot-core#11861,
which covers multiple cargo workspaces in one repository and has been open since
March 2025. Our comment there adds the submodule variant, where the two obvious
escapes contradict each other.

Related, all closed or regressed:
#10584 (fixed then
regressed), #9533,
#5864.

Ways out

  1. Upstream fixes #11861 so path dependencies into a submodule resolve. Then
    uncomment the entry.
  2. A scheduled workflow runs cargo update and opens a pull request. Covers
    version drift; does not react to advisories on its own.
  3. Renovate for the cargo ecosystem, which resolves workspaces differently.
  4. Restructure away from submodule path dependencies. Large, and the vendoring
    is deliberate.

Until one of those lands, Rust dependencies are updated by hand. Worth checking
RustSec periodically, since nothing else is watching.

Activity

  1. added
    next-sprint
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions