Security updates for indirect dependencies for pip-compile #26947
Replies: 3 comments 2 replies
-
that should be done in indirect deps should be disabled by default. |
Beta Was this translation helpful? Give feedback.
-
I will list functions, that I think, are crucial for such feature to work. Here, renovate/lib/workers/repository/update/branch/get-updated.ts Lines 38 to 50 in ea5e20e Here in renovate/lib/workers/repository/process/lookup/generate.ts Lines 95 to 97 in ea5e20e Here in renovate/lib/workers/repository/process/lookup/index.ts Lines 228 to 234 in ea5e20e |
Beta Was this translation helpful? Give feedback.
-
What is the meaning of transitive dependency in the context of https://docs.renovatebot.com/configuration-options/#transitiveremediation |
Beta Was this translation helpful? Give feedback.
-
This is a continuation of thread from pip-compile support feature request #24725 (comment)
In my specific use-case, I wish to create updates for indirect dependencies that can be only found in lock files
requirements.txt
. As of version 37.162 Renovate creates PRs only for dependencies that exist in package filesrequirements.in
. For libraries, we will favourlockFileMaintenance
but for services we prefer small incremental updates. Hence, this feature request.In draft PR #26871, commit cffa2d5 I was able to cobble together a solution that is able to create PRs for all indirect dependencies by setting their
depType
topip-indirect
, and executing for eachdepType==pip-indirect
functionupdateLockedDependency
defined bypip-compile
manager. This is a workaround and is quite limited as in configuration you need to disable updates for all packages, else it will create updates for all indirect packages. It will also silently fail if command errors out inupdateLockedDependency
. That's whereupdateArtifacts
has an advantage, as it always creates PR and will include a comment with error message. This is desirable as it presents a place to start for resolving package conflicts.My draft PR proves that this is possible for
pip-compile
to update single indirect dependency with--upgrade-package
option, and it can be incorporated into Renovate.I have created this discussion to explore ways to better incorporate such feature that will not require any additional configuration and work well out-of-the-box. Because what I understand, it will require a bit of refactoring. Hopefully this can begin a support for other package managers.
Here are similar discussions, I'm not aware of any other related to
pip-compile
:Beta Was this translation helpful? Give feedback.
All reactions