Background
While the direct dependencies are updated by dependabot, transitive (indirect) dependencies are not, which seems to be a known problem: dependabot/dependabot-core#14073
This is going to become a more pressing problem as we move to using uv for most new Python projects (#507).
There are a few potential problems with not updating transitive deps:
- Not getting fixes for security vulnerabilities (though I believe you can configure dependabot to open PRs for these)
- Not getting fixes for bugs/performance issues
- Binary wheels for old versions of packages being removed (even fairly recent versions of packages seem not to have binary wheels on PyPI)
The last one was an issue with FROG (ImperialCollegeLondon/FROG#942). I was trying to build the package on a researcher's machine, but seemingly one of the dependencies required a Rust toolchain, so the build just failed 😞.
Potential solutions
- We could write a CI workflow which calls
uv lock --upgrade at regular intervals to supplement what dependabot is doing
- We could move to Renovate, which supports updating transitive dependencies out of the box
The downside of moving to a separate tool is that it would involve another configuration step, which is annoying. Might be worth it though. You can [use it for private repos] too.
Thoughts, everyone? Tagging Christopher Cave-Ayland (@cc-a) as this is vaguely security related 😄
Background
While the direct dependencies are updated by dependabot, transitive (indirect) dependencies are not, which seems to be a known problem: dependabot/dependabot-core#14073
This is going to become a more pressing problem as we move to using
uvfor most new Python projects (#507).There are a few potential problems with not updating transitive deps:
The last one was an issue with FROG (ImperialCollegeLondon/FROG#942). I was trying to build the package on a researcher's machine, but seemingly one of the dependencies required a Rust toolchain, so the build just failed 😞.
Potential solutions
uv lock --upgradeat regular intervals to supplement what dependabot is doingThe downside of moving to a separate tool is that it would involve another configuration step, which is annoying. Might be worth it though. You can [use it for private repos] too.
Thoughts, everyone? Tagging Christopher Cave-Ayland (@cc-a) as this is vaguely security related 😄