pip-compile update breaks if dependency is grouped with custom regex manager updates #34015
Replies: 3 comments 9 replies
-
If it only applies to grouping with the custom manager then please update the title to match. |
Beta Was this translation helpful? Give feedback.
-
I think I found the cause of this issue. It has nothing to do with the pip-compile or the custom.regex managers per se; it's just the combination of managers that use lock files with others that don't. The lockFiles attribute is not reliably copied into the branch config. Consider
The branch config is eventually passed into I don't know the best approach for a proper fix:
|
Beta Was this translation helpful? Give feedback.
-
Would you like to provide these logs? |
Beta Was this translation helpful? Give feedback.
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitLab, Renovate 39.158.1 and 38.142.7
Please tell us more about your question or problem
Minimal reproduction repository: https://github.com/chludwig-haufe/renovate-pip-compile
I manage the versions of some Python packages I install in a Docker base image with pip-compile. The README of this project lists the versions of the most relevant packages. These versions are stored in AsciiDoc document properties and updated using Renovate's custom regex manager.
As long as a package is not included in the README, the pip-compile manager generates an MR that icludes updates to both requirements.in and requirements.txt (as expected).
However, if a package is also included in the README (i.e., there is a comment for this dependency matched by the regex manager), then the generated MR contains the changes to README.adoc and requirements.in only. The update of requirements.txt that must come together with the change to requirements.in is lost.
I see in the debug logs that the requirements.txt is generated. But I didn't find any messages that would explain why the generated file is not carried over into the MR.
Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions