-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(workers/repository): Pass proper lockFiles in lockFileMaintenance #27319
Conversation
Hopefully it will ignore infered lock files if they don't exist |
This workaround may break more things. Attempt 2 will require mayor refactor in tests and hack some data in managerData |
This reverts commit d3f864a.
Tested on a real repo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really like this workaround 🤔
Co-authored-by: Michael Kriese <[email protected]>
I still don't know what should I expect at the input of This whole workaround can be taken away from But putting some plumbing before |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs deconflicting
Co-authored-by: Rhys Arkins <[email protected]>
🎉 This PR is included in version 37.214.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This applies the fix from renovatebot#27319 to non-lockFileMaintanence updates so that the correct lockFiles attribute gets passed to the manager's updateArtifacts function when updating single dependencies. Without this change, the same lockFiles attribute gets passed along with every packageFileName, which causes the pip-compile manager to update the same lock file multiple times when a dependency is updated in multiple input files.
Changes
#26858 introduced a regression. Because higher functions don't pass a lock files associated with a given package file, and
UpdateArtifactsConfig
has lock files from a first package file, lock file maintenance will ignore the rest.The workaround used available
packageFiles
data associated to manager, and patched config passed toupdateArtifacts
Context
@mbudnek has found this issue
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: