ImperialCollegeLondon / ImperialCollegeLondon/python-template
Transitive dependencies in `uv.lock` not updated by dependabot
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 14
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Background
While the direct dependencies are updated by dependabot, transitive (indirect) dependencies are not, which seems to be a known problem: https://github.com/dependabot/dependabot-core/issues/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 (https://github.com/ImperialCollegeLondon/FROG/pull/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 --upgradeat 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 @cc-a as this is vaguely security related 😄
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how Dependabot currently handles Python projects and the existing uv.lock files, then compare the proposed CI workflow using uv lock --upgrade with Renovate's uvlock support. Done means there is an agreed, documented approach that regularly updates transitive dependencies and is validated for the template's Python projects.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, security, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100