Repository navigation
Description
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
- Upstream fixes #11861 so path dependencies into a submodule resolve. Then
uncomment the entry. - A scheduled workflow runs
cargo updateand opens a pull request. Covers
version drift; does not react to advisories on its own. - Renovate for the cargo ecosystem, which resolves workspaces differently.
- 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
docs(codebase): say that Dependabot does not watch the Rust workspace (…